0
$\begingroup$

Rosanswers logo

Hi,

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.

Thanks.


Originally posted by the3kr on ROS Answers with karma: 91 on 2019-04-16

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Flipping the base_link by 180 degrees fix the error.

https://answers.ros.org/question/249457/how-to-turn-the-orientation-of-the-jackal-robot/


Originally posted by the3kr with karma: 91 on 2019-04-17

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by beluga on 2022-03-17:
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?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.