carla-simulator / scenario_runner

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

Way to spawn a car having some speed already. #943

Open TigerStone93 opened 1 year ago

TigerStone93 commented 1 year ago

Currently, the TeleportAction in OpenScenario only uses the position property.

In my knowledge it is impossible to spawn a car having some speed already. (ex: Spawning a car having 10m/s speed.)

Is there any way to implement it easily?

Without modifying the codes, giving some acceleration area to reach designated velocity in a scenario is the only way?

Please give me any advice.

Thank you in advance.

PrussianBbblue commented 10 months ago

Use absolutespeedaction in Init. But it might depends on the type of vehicles. I have tried on a motorcycle and a car. I can see it works on the car but the speed of the motor is accelerating.