carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.42k stars 3.7k forks source link

Run openscenario file #2711

Closed anna-srl closed 4 years ago

anna-srl commented 4 years ago

Hi everyone,

New to Carla here :)

I have been trying run the overtaking scenario posted in #324 (my first attempt to run an openscenario file). Following the example posted in [(https://github.com/carla-simulator/scenario_runner/blob/master/Docs/getting_started.md)] :

python scenario_runner.py --openscenario <path/to/xosc-file>

I try to run the following command:

python scenario_runner.py --openscenario <C:\..\scenario_runner-0.9.5\Overtaker.xosc>

(I placed the openscenario file in the same folder as scenario_runner.py and I am running it from this directory)

and I keep getting the message:

The syntax of the command is incorrect.

Any ideas on how I can change the syntax approprately?

Many thanks in advance!

wangzf-zz commented 4 years ago

remove the < and > from your command, it might works!

anna-srl commented 4 years ago

@wangzf-zz Thanks for your reply, unfortunately, now I get a different error:

error: unrecognized arguments: --openscenario C:...\scenario_runner-0.9.5\Overtaker.xosc

I also tried different combinations including:

python scenario_runner.py --scenario Overtaker.xosc

Configuration for scenario Overtaker.xosc cannot be found!

And

python scenario_runner.py --openscenario Overtaker -- C:\..\scenario_runner-0.9.5\Overtaker.xosc

error: unrecognized arguments: --openscenario Overtaker -- C:..\scenario_runner-0.9.5\Overtaker.xosc

Any other ideas?

glopezdiest commented 4 years ago

Hello @anna-srl. From your root path, it seems like you are using scenario runner 0.9.5, is that correct? OpenSCENARIO support starts at version 0.9.5.1.

For OpenSCENARIO version 0.9.x use scenario runner versions 0.9.5.1 to 0.9.8 For OpenSCENARIO version 1.0, you should use the current master, as it is currently implemented but not released as an official version yet.

anna-srl commented 4 years ago

Hi @glopezdiest ,

Yes that was the issue, many thanks for your help!