Example2.3 malformed launch argument 'simple_topic_subscriber.launch.py', expected format'<name>:=<value>'

When I launch: ros2 launch topic_subscriber_pkg simple_topic_subscriber.launch.py
I get malformed launch argument ‘simple_topic_subscriber.launch.py’, expected format’:=’ when I am in the folder ~/ros2_ws/src.
In other folders I get the following: Package ‘topic_subscriber_pkg’ not found: "package ‘topic_subscriber_pkg’ not found, searching

I have sourced my workspace with source ~/ros2_ws/install/setup.bash and I have also activated rosbridge but I cannot solve this problem

Thank you contacting us and welcome to the Community!

I’m very sorry - we somehow missed this question :sob:.

Did you manage to solve it? The error suggests that you have some typos in your launch file. Could you go over it again? Also check that the package name is correctly typed and the CMakeLists.txt file has been properly modified.

yes, I finally solved
I didn’t source ros2 with source ~/ros2_ws/install/setup.bash D:

1 Like