Problem with with mstraj function in Peter Corke's Robotic Toolbox

21 ビュー (過去 30 日間)
Ho Jin Ping
Ho Jin Ping 2021 年 6 月 2 日
コメント済み: Dominika Krason 2022 年 2 月 8 日
Hi all, I've been trying to do trajectory planning with a 3 DOF robot arm, RRR, using the mstraj function in Peter Corke's Robotic Toolbox to calculate a trajectory between two points with one point in between. So far it has worked wonderfully for certain values for the time taken from one to another, however with values below 4 the coordinates generated cause the robot arm to jump from one point and back again. I've just started using MATLAB for about a month ago so I may not be aware of certain mistakes, so I hope that you can help diagnose and determine whether it's a bug or not. The full code is attached below.
Thanks in advance!
traj1 = mstraj(via1, [], [4 4], q1, 0.1, 3); %the value [4 4] for time taken work fine
traj2 = mstraj(via2, [], [4 4], q3, 0.1, 3);
traj1 = mstraj(via1, [], [3 3], q1, 0.1, 3); %the value [3 3] however gives coordinates which cause the robot arm to jump back from...
traj2 = mstraj(via2, [], [3 3], q3, 0.1, 3); % point to point
  1 件のコメント
Dominika Krason
Dominika Krason 2022 年 2 月 8 日
Hi, do you by any chance have mtraj function somewhere or know where to download it? Ive been trying to use Peter Corke's pure pursuit simulink model but it seems to be missing even tho I have downloaded full toolbox. :/

サインインしてコメントする。

採用された回答

Ho Jin Ping
Ho Jin Ping 2021 年 6 月 6 日
編集済み: Ho Jin Ping 2021 年 6 月 6 日
Nvm! I've figured out why, my brain didn't realise that the last parameter for mstraj was the acceleration time which I've put to be equal to the journey time between via points. My bad!!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBiological and Health Sciences についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by