gazebo robots always drift to the side

asked 2019-06-24 03:07:40 -0500

tschuko gravatar image

updated 2019-06-25 07:56:22 -0500


I'm trying to cerate a two-wheeled robot that follows a line (see other Question). But when I spawn a urdf model and publish a /cmd_vel message with velocity.linear.x = 1 and all other values at 0, the robot rarely drives in a straight line. Most of the time it seems to misalign itself and differ from it's path. Seemingly random to which side. ( Also, the rviz and gazebo positions don't always match up, which could have a comon cause?

I thought it may be a urdf error, but even with predefined models (e.g. the turtlebot) the same problem persists. Does someone know what may be the problem?

Thanks in advance

UPDATE: I tried on a seperate system to launch the pre-defined turtlebot3 model and, again, send a /cmd_vel msg to it. But instead of dirving with linear.x = 1 it spins randomly.

graphic card: NVIDIA GK107GL (Quadro K2000) Ubuntu LTS ROS-melodic

edit retag flag offensive close merge delete