ros2:eloquent: how can I remap teleop topic for gazebo dolly

asked 2019-11-30 11:03:31 -0500

ChriMo gravatar image

updated 2019-11-30 11:56:24 -0500

Hello community,

I currently playing with new ros eloquent and gazebo simulation dolly and demo diffdrive. e.g.

Now I like to use teleop to control the simulation. Dolly uses by default the topic /dolly/cmd_vel and teleop uses /cmd_vel.

How can I remap teleop /cmd_vel to /dolly/cmd_vel from command line ?

Thanks for a short feedback

Cheers Chrimo

Maybe a problem of eloquent/gazebo ?

edit retag flag offensive close merge delete


I found something: '--remap /cmd_vel:=/dolly/cmd_vel' is deprecated.

ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap /cmd_vel:=/dolly/cmd_vel

ChriMo gravatar image ChriMo  ( 2019-11-30 11:23:40 -0500 )edit

I tried the same with gazebo diff_drive world. No moves at gazebo simulation, when sending cmd_vel.

ros2 topic echo /demo/cmd_vel or /dolly/cmd_vel display values when using teleop.

ChriMo gravatar image ChriMo  ( 2019-11-30 11:52:59 -0500 )edit

has somebody verified ros eloquent with gazebo ? Is there any working sample available so far ?

ChriMo gravatar image ChriMo  ( 2019-11-30 11:58:20 -0500 )edit