Reverse driving in RoadRunner
Mostrar comentarios más antiguos
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.

Respuesta aceptada
Más respuestas (1)
Rishi
el 27 de Oct. de 2023
0 votos
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 comentario
Pushpa Raj
el 10 de Nov. de 2023
Categorías
Más información sobre Get Started with RoadRunner Scenario en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


