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

Robot moves forward in rviz and backward in gazebo

asked 2019-04-16 07:35:43 -0600

the3kr gravatar image

updated 2022-08-28 10:58:02 -0600

lucasw gravatar image


I can't figure out why my robot moves forward in rviz and backward in gazebo when I publish to a positive value /cmd_vel linear.x, and moves backward in rviz and forward in gazebo when it's a negative linear.x value.

I think the ideal thing is to have the robot move in the same direction in both rviz and gazebo

Any help is appreciated.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-04-17 13:39:13 -0600

the3kr gravatar image

Flipping the base_link by 180 degrees fix the error.

edit flag offensive delete link more


So did you flip the base_link according to the base_footprint?

Do you think this may cause problems later when navigation stack etc are involved?

beluga gravatar image beluga  ( 2022-03-17 07:12:58 -0600 )edit

Question Tools



Asked: 2019-04-16 07:35:43 -0600

Seen: 558 times

Last updated: Apr 17 '19