rst-tu-dortmund / teb_local_planner

An optimal trajectory planner considering distinctive topologies for mobile robots based on Timed-Elastic-Bands (ROS Package)
http://wiki.ros.org/teb_local_planner
BSD 3-Clause "New" or "Revised" License
1.04k stars 548 forks source link

TEB Steering output oscillate #252

Open droter opened 3 years ago

droter commented 3 years ago

I was plotting out the cmd_vel.angular.z message from the TEB planner. How do I prevent the steering from oscillating? This happens both as rotational velocity and steer angle setting in TEB.

teb steering output

jediofgever commented 3 years ago

I might observed a similar behavior on my Ackermann drive robot. Though haven’t plot the value from cmd_vel as I thought the oscillation might be caused because of the poor tuned PID values of steering control. This could well be the same issue, were you able to figure this out ?

LotfiZ commented 3 years ago

I have the same issue with translation velocities, it oscillate between 0 and the max vel that i set, i used the same setup in simulation and it was not the case. image

jcmonteiro commented 3 years ago

These are usually examples of poor tuning. What set of parameters are you using?

tianb03 commented 3 years ago

I also have a similar situation recently when I test with a mars rover with Ackermann drive. The cmd_vel oscillation should not be an issue because when the robot's moving direction changes, the angular z will change the sign directly.

However, when the robot makes an "r" movement, the Ackermann steering seems will not take the acc_lim_theta into consideration, maybe because there is also very little translational velocity. Then if the robot needs to move back and forth several times to adjust its pose, the steering wheel will oscillate dramatically.

Currently, I am not sure how to solve this problem. In stage simulation, it seems smooth just because there is no real mechanism. It is really appreciated that someone could provide a patch for this issue.

jachyshu commented 4 months ago

it seemed that i met the same situation, wondering if u solved it.