Open openscenario opened 2 years ago
I might be wrong here, as I'm not 100% familiar with OpenScenario, but the Performance doesn't seem to be supported in Scenario Runner. The best approach is probably to create a Controller action, and there, set the desired speed of the vehicle controller
I double-checked that the Performance
property cannot initialize the maxSpeed
, maxAcceleration
, and maxDeceleration
on its Vehicle
.
Yes I can confirm. I could pass the velocity by passing the max velocity value to the BasicAgent seehttps://github.com/carla-simulator/carla/blob/master/PythonAPI/carla/agents/navigation/basic_agent.py.
Parameters as maxAcceleration and maxDeceleration, cannot be passed through the agent as it looks like.
I need to modify the maximal speed the autonomous agent is driving in my scenario. In my scenario.xosc file I tried to modify the maxSpeed value in the ScenarioObject definition, but this does not affect the maximal speed.
I assume setting an initial speed action does not makes sense, since the hero behaviour is controlled externally.
I have just encountered that the BasigAgent init function has a target_speed parameter: https://github.com/carla-simulator/carla/blob/master/PythonAPI/carla/agents/navigation/basic_agent.py#L29
Is there a way of setting this parameter using the scenario.xosc file, or is there something I am not aware of?