scenario_runner icon indicating copy to clipboard operation
scenario_runner copied to clipboard

Setting ego_vehicle initial speed via OpenScenario

Open GokalpUnsal opened this issue 2 years ago • 2 comments

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 image

System

  • OS: [Ubuntu 18.04]
  • CARLA Version [CARLA 0.9.14]
  • Python version [2.7]
  • Version [0.9.13]

GokalpUnsal avatar Feb 20 '23 12:02 GokalpUnsal

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.

ronyshaji avatar Aug 16 '23 07:08 ronyshaji

Are you using npc vehicle control? if yes: Check the output :code

starrye avatar Oct 13 '23 09:10 starrye