carla-simulator / scenario_runner

Traffic scenario definition and execution engine
https://carla-scenariorunner.readthedocs.io/en/latest/
MIT License
519 stars 358 forks source link

The stop trigger on the storyboard is not working. #1069

Open hlsongg opened 5 months ago

hlsongg commented 5 months ago

I made an example of the situation below.

[Example]

  1. The Ego vehicle starts at SimulationTime = 0 and increases the speed from 0 to 60 km/h. (Accelerate for 5 seconds)
  2. In front of the lane where the Ego vehicle(hero) is located, there is a counter vehicle(standing).
  3. If the distance between the Ego vehicle(hero) and the counter vehicle(standing) is narrowed to 30 m, the speed of the Ego vehicle(hero) is reduced to 30 km/h.
  4. Both vehicles continue to drive for 1 minute and terminate.

I have a OpenSCENARIO file which has scenario end condition (StopTrigger on StoryBoard) as StoryboardElementStateCondition converting to endTransition. However, after SlowPrecordingStartCondition is triggered, the stop trigger does not work and ends with the following error. How can I fix it to do the scenario as intended? Destroying ego vehicle 147 ERROR: failed to destroy actor 147 : unable to destroy actor: not found

`<?xml version="1.0"?>

`