Reverse driving in RoadRunner
古いコメントを表示
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.

採用された回答
その他の回答 (1 件)
Rishi
2023 年 10 月 27 日
0 投票
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.
カテゴリ
ヘルプ センター および File Exchange で Get Started with RoadRunner Scenario についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


