How to redefine waypoints for the desired path for the robot?

6 ビュー (過去 30 日間)
Arun Adiththan
Arun Adiththan 2017 年 7 月 14 日
回答済み: Prashant Arora 2017 年 7 月 17 日
I use the example here (https://www.mathworks.com/help/robotics/examples/path-following-for-a-differential-drive-robot.html) to describe a set of waypoints for the desired path using an array. The robotic controller computes control commands to reach the specified goal along the waypoints. Say, I want to update the waypoints midway to specify a different route to reach the originally specified destination. Any inputs on how I could realize this would be helpful. Thanks!

採用された回答

Prashant Arora
Prashant Arora 2017 年 7 月 17 日
Hi Arun,
I understand that you would like to update the waypoints of the controller during simulation. You can achieve this by simply changing the "Waypoints" property of the controller using the following command:
controller.Waypoints = updatedPath;
updatedPath variable defines waypoint similar to "path" variable in the example you mentioned. You can also change the conditional convergence by re-calculating "distanceToGoal".

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePublishers and Subscribers についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by