Robotics StackExchange | Archived questions

ros2 run - invalid choice?

Hi, I installed ros2 dashing on NVIDIA Jetson AGX Xavier from source, following this guide.

The installation completed without any issue (or so I thought...).

But I can't get the ros2 run command working.

Any idea how to solve this issue?

me@me-xavier:~$ ros2 run
usage: ros2 [-h] Call `ros2 <command> -h` for more detailed usage. ...
ros2: error: argument Call `ros2 <command> -h` for more detailed usage.: invalid choice: 'run' (choose from 'daemon', ' extension_points', 'extensions', 'launch', 'msg', 'node', 'param', 'pkg', 'service', 'srv', 'test', 'topic')

Asked by upoque on 2021-02-03 11:18:54 UTC

Comments

Answers

Did you create a workspace for ros2 and add source on .bashrc ? if you want to run some package you have to add pack name and script name for example ros2 run my_package node_executable . However if you want to run some pack firstly you have to install it.

Please do not get me wrong you can check in this link.

https://index.ros.org/doc/ros2/Tutorials/Node-arguments/

Asked by bekirbostanci on 2021-02-03 15:52:18 UTC

Comments