Robotics StackExchange | Archived questions

Turtlebot doesn't move in a straight line

I have some C++ code in which i give the turtlebot a coordinate using:

goal.target_pose.pose.position.x = mypoint.point.x

goal.target_pose.pose.position.y = mypoint.point.y

The robot moves from one point to another. However only rarely does it do this in a straight line. It seems as though the turtlebot starts moving before it is done rotating. There are not any obstacles inbetween the points. It is able to get to every point, but it tends to move in small arc between them.

Any ideas on how to force the robot to move in a straight line, when there are no obstacles in its way?

I use turtlebotbringup minimal.launch and turtlebotnavigation gmapping_demo.launch.

Asked by Elektrikeren on 2016-12-01 08:29:22 UTC

Comments

Hi! I'm facing the same issue. Any luck?

Asked by felipeduque on 2020-05-04 07:57:08 UTC

We tried our program on another TurtleBot where it worked flawlessly. It was a school project, and they had plenty excess TurtleBots, so we swapped it out. However, we never found the problem.

Asked by Elektrikeren on 2020-05-04 08:02:49 UTC

Answers