Ask Your Question
0

Robot moves forward in rviz and backward in gazebo

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

the3kr gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

the3kr gravatar image

Flipping the base_link by 180 degrees fix the error.

https://answers.ros.org/question/2494...

edit flag offensive delete link more

Comments

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 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

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

Seen: 384 times

Last updated: Apr 17 '19