Skip to content

eliminate false invalid trajectory exceptions - implement proper vehicle stopping #154

@mantkiew

Description

@mantkiew

Currently, we're getting false invalid trajectory exceptions which happen when the vehicle is coming to a stop. For example:

pixi run gss -s scenarios/coretest_scenarios/straightdrive.gs.osm
...
I0324 16:48:38.261729 32884 SDVPlanner.py:183] VID 1 started maneuver M_STOP
W0324 16:48:42.739907 32884 ManeuverModels.py:367] PLAN STOP Vehicle 1 target position 0.8385198894792154 is too close or behind
W0324 16:48:42.894244 32884 SDVPlanner.py:226] VID 1 plan_maneuver return invalid trajectory.
W0324 16:48:42.928690 32884 ManeuverModels.py:367] PLAN STOP Vehicle 1 target position 0.4816815854623684 is too close or behind
W0324 16:48:43.097340 32884 SDVPlanner.py:226] VID 1 plan_maneuver return invalid trajectory.
W0324 16:48:43.147627 32884 ManeuverModels.py:367] PLAN STOP Vehicle 1 target position 0.25584369571735976 is too close or behind
W0324 16:48:43.300171 32884 SDVPlanner.py:226] VID 1 plan_maneuver return invalid trajectory.
W0324 16:48:43.340917 32884 ManeuverModels.py:367] PLAN STOP Vehicle 1 target position 0.12317520480068822 is too close or behind
W0324 16:48:43.503281 32884 SDVPlanner.py:226] VID 1 plan_maneuver return invalid trajectory.
W0324 16:48:43.553952 32884 ManeuverModels.py:367] PLAN STOP Vehicle 1 target position 0.03659852013829834 is too close or behind
W0324 16:48:43.706186 32884 SDVPlanner.py:226] VID 1 plan_maneuver return invalid trajectory.
I0324 16:48:44.122864 32884 SDVPlanner.py:274] PLANNER PROCESS END. Vehicle1
E0324 16:48:44.143295 32813 GSServer.py:164] Vehicle under test reached its target

So, eventually, the vehicle reaches the speed of 0.03 but we see invalid trajectory a few times.
The maneuver M_STOP does return None, None because it has no way to return a proper stopping trajectory.
That causes the exception.

So, we should only be getting invalid trajectory in true cases, for example, when it is impossible to actually stop when the speed is too high and maximum deceleration would be exceeded.

@rodrigoqueiroz I cannot add SheaCardozo to this issue. Why?

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions