scenario_runner
scenario_runner copied to clipboard
Setting ego_vehicle initial speed via OpenScenario
Hi, I am trying to use carla scenario runner with a given scenario in an OpenScenario format. I am running a ros_vehicle as ego_vehicle and I want to initialize my ego vehicle with an initial speed. According to OpenScenario, you can set an initial speed to an entity in <Init>
if you define a <LongitudinalSpeedAction>
with a desired speed value. However when I execute my scenario, I cannot see any movement in my ego_vehicle.
I've tryed debugging if the speed action value is parsed from the scenario file. and it does. It is passed in open_scenario.py
in the function _create_init_behavior()
. It is supposed to call ChangeActorTargetSpeed
with a init_speed=True
flag. The execution works as intended but I still cannot see any initial speed in my scenario. Is there something that I am missing?
Screenshots
System
- OS: [Ubuntu 18.04]
- CARLA Version [CARLA 0.9.14]
- Python version [2.7]
- Version [0.9.13]
Hey Late reply. Probably changing the value of 'value' may helps. Currently it is zero and you can set to 0.1 or something to check whether any changes are happening.
Are you using npc vehicle control? if yes: Check the output :code