Skip to content

Ghostdriver and change of driving direction #384

@Lunarix

Description

@Lunarix

Hello,
I am having some trouble using the esmini-ghostdriver and changing the driving direction in a scenario. I am using the SE_GetRoadInfoAlongGhostTrail() function to get Ego's next position & speed. I attached the regular xosc files and the xosc files using the ghostdriver in the zip file. The _temp scenario's contain the ghostdriver scenarios.

Let's assume the scenario below:
scenario_graphic
The Ego vehicle will drive forward until it will hit the circle. This is a DistanceCondition that triggers driving backwards. The vehicle should brake to standstill and then drive reverse. I can define the transition dynamics differently how fast the vehicle should drive backwards.

1. Working scenario
Scenario change_direction_works_temp.xosc uses a very very fast change of directions:
<SpeedActionDynamics dynamicsDimension="distance" dynamicsShape="linear" value="1.000000"/> <SpeedActionTarget> <AbsoluteTargetSpeed value="-5.555556"/> </SpeedActionTarget>
No vehicle can brake that fast so that my vehicle will overshoot the ghostdriver's estimated turning point. I get a valid reverse trajectory afterwards so that my vehicle will try to drive backwards as fast as possible.

2. Not working scenario
Scenario change_direction_false_temp.xosc uses a slow change of directions:
<SpeedActionDynamics dynamicsDimension="rate" dynamicsShape="linear" value="1.000000"/> <SpeedActionTarget> <AbsoluteTargetSpeed value="-5.555556"/> </SpeedActionTarget>
The vehicle will slow down very slowly. It will even pass the other vehicle by a few meters. Right before hitting the turning point the ghostdriver will always return +-0 ghost_speed information. It is constantly switching between a small positiv ghost_speed value and a small negative ghost_speed value. That's why my vehicle will never reach that last point and never start driving backwards.

I am currently using a ghostdriver distance of ~0.2m but also changing that to a higher value ~2m did not improve the behaviour. The switching point is then just a bit more infront of the vehicle.

Is there any configuration that I can make to improve driving at these turning points? I've also attached the original xosc files that are both runnable using the original esmini-driver and dynamics.

Thank you!

ghostdriver_scenario_change_direction.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions