Robotics StackExchange | Archived questions

Where did ros2 msg go?

Hi I'm trying out lgsvl for ros2.

I can't get the msg list command working for ros2 foxy.

$ ros2 msg list |grep lgsvl_msgs

usage: ros2 [-h] Call `ros2 <command> -h` for more detailed usage. ...
ros2: error: argument Call `ros2 <command> -h` for more detailed usage.: invalid choice: 'msg' (choose from 'action', 'bag', 'component', 'daemon', 'doctor', 'extension_points', 'extensions', 'interface', 'launch', 'lifecycle', 'multicast', 'node', 'param', 'pkg', 'run', 'security', 'service', 'test', 'topic', 'wtf')

Has the command changed for ros2 foxy?

Asked by upoque on 2021-01-26 21:11:11 UTC

Comments

Answers

Yes it has :

ros2 interface list

Have a look here for an example,

You can list messages only with the -m parameter :

ros2 interface list -m

Asked by Mackou on 2021-01-27 03:24:25 UTC

Comments

I was facing the same error, thanks for the answer. I think this testing section can be updated in svl simulator documentation here.

Asked by kk2105 on 2021-04-09 07:13:52 UTC