accel_brake_map_calibrator sometimes produce invalid map file #1904
Labels
component:control
Vehicle control algorithms and mechanisms. (auto-assigned)
component:vehicle
Vehicle-specific implementations, drivers, packages. (auto-assigned)
status:help-wanted
Assistance or contributors needed.
status:stale
Inactive or outdated issues. (auto-assigned)
type:bug
Software flaws or errors.
Checklist
Description
I went through the accel/brake map calibration of one vehicle today. After driving with a joystick for a while I saved the file with the
/accel_brake_map_calibrator/update_map_dir
service.But upon testing, the
raw_vehicle_cmd_converter
would always crash on loading the generated data (ininterpolation_utils::validateKeys
). I inspected the file and saw that sometimes the column values were the same over consecutive rows. Like this:I manually edited the value so that accel values are strictly increasing. Like so:
And the
raw_vehicle_cmd_converter
is not crashing anymore.I don't know whether it is normal for the interpolation to crash when values are not strictly increasing. But either the interpolation of the calibrator should be fixed
Expected behavior
accel/brake maps generated by the
accel_brake_map_calibrator
should always be valid.Actual behavior
sometimes incompatible maps are generated
Steps to reproduce
Versions
Possible causes
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: