apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Planner breaks above 22.5 m/s due to hard coded values in st_bounds_decider

Open davidadley opened this issue 6 years ago • 0 comments

Describe the bug In the st_bounds_decider the desired_speed, max_acc and max_dec are all hard coded values.

This causes the st_bounds_decider to fail if the car attempts to go above max_v = desired_speed * 1.5 = 22.5.

The error occurs when the car’s speed approaches 22.5 m/s, a fallback speed is generated and the error is visible in the log.

To Reproduce Steps to reproduce the behavior:

  1. Attempt to travel a route with a speed limit beyond 22.5 m/s using sim control.
  2. Examine the log file and see that an error results.

Additional context The error occurs as driving_limits_bound.second becomes negative if the car’s current speed is larger than the max_v.

Workaround Hard coding max_v to a large number removes this issue.

Release Apollo 5.5 official release.

davidadley avatar Jan 08 '20 23:01 davidadley