carla-simulator / scenario_runner

Traffic scenario definition and execution engine
https://scenario-runner.readthedocs.io/en/latest/
MIT License
536 stars 365 forks source link

ASAM standard.osc support in osc2 scenario_runner #1092

Open dx6nxr opened 5 months ago

dx6nxr commented 5 months ago

Hi, following on my previous issue, namely: here, and also issue made by another community member here. I've been trying to make Scenario runner to work with standard.osc library provided by ASAM, so far I've had tough luck doing it, as it will spit a bunch of syntaxis errors in the standard.osc itself, and will not run a scenario. Current state can be seen on this screenshot: image which is pretty odd to me, as officially distributed library must not contain syntax errors. Was scenario_runner even tested with standard.osc? As there are no example or test files using this library, and the instruments that basic.osc provides are pretty "basic", and are not enough for my use case. Is there a way to use standard.osc or will I have to modify basic.osc in a way I need it to be? Thanks in advance.

Best regards, Ivan Burmistrov

Desktop:

DimK19 commented 3 months ago

I have the same problem. For reference, the file standard.osc is provided by ASAM at this webpage, under “Additional resources”: https://www.asam.net/static_downloads/public/asam-openscenario/2.0.0/domain-model/standard_library.html

@dx6nxr Have you found any solution? Thanks.

dx6nxr commented 2 months ago

Hey @DimK19, no, as far as I understood after looking at the files there's no way to make it work without major changes to scenario runner core. Additionally, scenario_runner support for osc2 does not support any triggers (i.e. distance triggers etc), which are very needed for my use-case, so I just settled down on using osc1.0 with all of it's underlying restrictions, but at least it works xD

DimK19 commented 2 months ago

there's no way to make it work without major changes to scenario runner core.

I have reached the same conclusion. As yet, osc2 is not sufficiently supported.