ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Correct way to map velocity_controller/cmd_vel to /cmd_vel

asked 2021-08-07 10:30:55 -0600

lucash gravatar image


I've created a differential robot using ros_control packages and everything works as expected. The only thing I couldn't quite get right is how to change the topic keeping track of the cmd_vel from /robot_velocity_controller/cmd_vel to just /cmd_vel. I've thought of using a topic relay, but it doesn't seem right. Is there a "native" way to do this in controller_manager? What is the correct way to do this?

Also, the same happens for the Odometry. I'd like for it to be published in /odom, but it is currently being published in /robot_velocity_controller/odom. Can I apply the same fix from cmd_vel?

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-07 15:26:56 -0600

404RobotNotFound gravatar image

updated 2021-08-07 15:27:05 -0600

Remapping, see this similar question:

edit flag offensive delete link more

Question Tools



Asked: 2021-08-07 10:30:55 -0600

Seen: 217 times

Last updated: Aug 07 '21