Reverse driving in RoadRunner
Show older comments
Hello community,
I am developing a parking scenario in RoadRunner in which the ego vehicle moves into the parking slot in reverse direction. I also need it follow a particular trajectory, however, it seems like RR is not supporting a reverse trajectory. Does anyone know how this can be achieved.
Note : I'm attaching screenshot from a video (for some reason I can't upload ) which shows a scenario in which the car moves on a trajectory and upon reaching the end uses -ve velocity to retract. I want to achieve just the second part, which is starting at a the end of trajectory and moving in reverse.

Accepted Answer
More Answers (1)
Rishi
on 27 Oct 2023
0 votes
Hi Pushpa,
I understand from your query that you’d like to drive your vehicle in reverse direction with a particular trajectory in RoadRunner.
The vehicle can be set to a negative speed to achieve this. This can be done by the following steps –
- Add a vehicle to the scenario
- Add a new waypoint to the path by right-clicking the lane on the trajectory you wish to drive your vehicle on
- Open the Logic Editor
- Add a new Action Phase by clicking ‘Add Action Phase After’
- Set the Action Type to ‘Change Speed’
- Set the Relative to parameter to ‘Absolute’ and change the velocity to a negative value of your choice.
The screenshots showing the steps are attached herewith.


You can find more about negative speed from the following documentation:
To read more about path following scenarios, you can refer to the following documentation:
You can also learn more about vehicle behaviour in RoadRunner from the below documentation:
Hope this helps.
1 Comment
Pushpa Raj
on 10 Nov 2023
Categories
Find more on Get Started with RoadRunner Scenario in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

