apollo
apollo copied to clipboard
Planner breaks above 22.5 m/s due to hard coded values in st_bounds_decider
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:
- Attempt to travel a route with a speed limit beyond 22.5 m/s using sim control.
- 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.