question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Examples of AssignRouteAction in OpenSCENARIO?

See original GitHub issue

Are there any examples of using AssignRouteAction and AcquirePositionAction tag in OpenSCENARIO which have tested already in the latest plugin? I am trying to use this tag to turn left or right in an intersection, but I haven’t yet. There are no examples of these tags in the “examples” directory. https://carla-scenariorunner.readthedocs.io/en/latest/openscenario_support/ saids that these tags are implemented in 0.9.10 (and I checked the source code), so it would be helpful that you provide some example (tested) OpenSCENARIO files.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Lu7913commented, Oct 29, 2020

I did some testing on RouteAction, it seems that the vehicle goes straight to the way point, I’m not sure which RouteStrategy ScenarioRunner/Carla supports, if any in terms of openSCENARIO. Since I’m having troubles with WorldPosition (My reference point seems to be wrong, or something), i did this with LanePosition. If you define enough waypoints you can make it work.

This example is vehicle turning in Town04, it works, because of enough waypoints defined. But if you define one waypoint before and one after intersection, vehicle wouldn’t perform turning as it should.

              <Action name="Assign Route">
                <PrivateAction>
                  <RoutingAction>
                    <AssignRouteAction>
                      <Route name="Route 1" closed="false">
                        <Waypoint routeStrategy="shortest">
                          <Position>
                            <LanePosition roadId="10" s="20.0" laneId="1" offset="0.0">
                              <Orientation h="0.0" p="0.0" r="0.0" type="relative"/>
                            </LanePosition>
                          </Position>
                        </Waypoint>
                        <Waypoint routeStrategy="shortest">
                          <Position>
                            <LanePosition roadId="10" s="15.0" laneId="1" offset="0.0">
                              <Orientation h="0.0" p="0.0" r="0.0" type="relative"/>
                            </LanePosition>
                          </Position>
                        </Waypoint>
                        <Waypoint routeStrategy="shortest">
                          <Position>
                            <LanePosition roadId="10" s="10.0" laneId="1" offset="0.0">
                              <Orientation h="0.0" p="0.0" r="0.0" type="relative"/>
                            </LanePosition>
                          </Position>
                        </Waypoint>
                        <Waypoint routeStrategy="shortest">
                          <Position>
                            <LanePosition roadId="10" s="5.0" laneId="1" offset="0.0">
                              <Orientation h="0.0" p="0.0" r="0.0" type="relative"/>
                            </LanePosition>
                          </Position>
                        </Waypoint>
                        <Waypoint routeStrategy="shortest">
                          <Position>
                            <LanePosition roadId="10" s="0.0" laneId="1" offset="0.0">
                              <Orientation h="0.0" p="0.0" r="0.0" type="relative"/>
                            </LanePosition>
                          </Position>
                        </Waypoint>
                        <Waypoint routeStrategy="shortest">
                          <Position>
                            <LanePosition roadId="1465" s="13.0" laneId="1" offset="1.0">
                              <Orientation h="0.0" p="0.0" r="0.0" type="relative"/>
                            </LanePosition>
                          </Position>
                        </Waypoint>
                        <Waypoint routeStrategy="shortest">
                          <Position>
                            <LanePosition roadId="17" s="56.0" laneId="1" offset="0.0">
                              <Orientation h="0.0" p="0.0" r="0.0" type="relative"/>
                            </LanePosition>
                          </Position>
                        </Waypoint>
                        <Waypoint routeStrategy="shortest">
                          <Position>
                            <LanePosition roadId="17" s="50.0" laneId="1" offset="0.0">
                              <Orientation h="0.0" p="0.0" r="0.0" type="relative"/>
                            </LanePosition>
                          </Position>
                        </Waypoint>
                      </Route>
                    </AssignRouteAction>
                  </RoutingAction>
                </PrivateAction>
              </Action>
1reaction
fabianoborilcommented, Nov 4, 2020

We just added support to use other routing strategies besides “shortest”. Please see PR #677

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASAM OpenSCENARIO: User Guide - ASAM e.V.
OpenSCENARIO is used in virtual development, test, and validation of functions for driver assistance, automated driving and autonomous driving.
Read more >
OpenSCENARIO support - CARLA ScenarioRunner
An example for a supported scenario based on OpenSCENARIO is available here ... AssignRouteAction, ❌, ✓, Route Options (shortest/fastest/etc) are ...
Read more >
Scenario — OpenPASS Documentation - Eclipse
It adheres to the ASAM OpenSCENARIO 1.0 standard, although we support only a subset of the ... repo/sim/contrib/examples/Common/VehicleModelsCatalog.xosc ...
Read more >
Development of a controller to switch between relative and ...
nario [ASAM OpenSCENARIO 2021] player for traffic simulations of autonomous ... example of how an action is implemented in the XOSC format.
Read more >
srunner.scenariomanager.scenarioatomics.atomic_behaviors ...
By voting up you can indicate which examples are most useful and appropriate. ... Behavior atomic Note not all OpenSCENARIO actions are currently...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found