Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acceleration limiter allows faster acceleration in one direction #52

Open
ArcticNarwhal opened this issue Jan 2, 2025 · 0 comments
Open

Comments

@ArcticNarwhal
Copy link

The limiter contains following relevant code:

double angular_acceleration_max_= 3.5
double angular_deceleration_max_=-3.5*1.2
double angular_acceleration = ((double)(wz - last_wz)) / duration; // in [rad/s^2]
if( angular_acceleration > angular_acceleration_max )
  command_wz = last_wz + angular_acceleration_max * duration;
else if( angular_acceleration < angular_deceleration_max )
  command_wz = last_wz + angular_deceleration_max * duration;
else
  command_wz = wz;
last_wz = command_wz;

This reads to me like the robot would have a maximal acceleration to the left (positive values) of 3.5, and a maximal acceleration to the right (negative values) of -3.5*1.2. This does not seem to be intended behavior.

Linear acceleration seems to have the same issue, allowing faster acceleration when going backwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant