MATLAB Answers

Trajectory plotting of manipulator path in Simscape

81 ビュー (過去 30 日間)
Gautami Golani
Gautami Golani 2019 年 7 月 18 日
Hello all,
I am currently working on a trajectory path following project wherein I am trying to feed a path to a robotic arm in Simulink and have imported the CAD model with help of Simscape. I have successfully completed this part but just want to know if there is any way I can show the actual trajectory that the arm is following in the Simscape window explorer as shown in the attachment.
Thanks

  0 件のコメント

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

回答 (1 件)

Sebastian Castro
Sebastian Castro 2019 年 7 月 18 日
Hi Gautami,
Simscape Multibody has a "Spline" block that lets you display a curve if you pass in the XYZ points. You have to display the whole curve during the whole simulation, if that's OK. Also, since it is an interpolating spline, I'd recommend passing in a bunch of the trajectory points (just the waypoints) and it will hopefully look close to the ideal trajectory.
If you need something to visualize the full trajectory of the path a body actually took, I might recommend using a "Transform Sensor" block to log the XYZ position of a particular coordinate frame and then log that data to MATLAB where you have all the visualization capabilities.
That aside, I agree with you that there should be an easier way to trace the path of a selected coordinate frame during simulation and visualize it on the Mechanics Explorer itself. I will convey your use case to our development team!
- Sebastian

  3 件のコメント

Gautami Golani
Gautami Golani 2019 年 7 月 18 日
Thank you for your response sir.
I will surely look into your suggestions and try to see if it works with my program to obtain the desired result.
Will wait for your response as well to see if there's an easier way to obtain the result.
Regards
Gautami
Gautami Golani
Gautami Golani 2019 年 7 月 24 日
Sir, is it possible to use the XY graph block to get the trajectory path that the robot arm is following?
THISATH ATTAMPOLA ARACHCHIGE DON
THISATH ATTAMPOLA ARACHCHIGE DON 2020 年 3 月 11 日
Hi, I am having the same problem did you figureout how to plot a trajectory from xyz cordinates from workspace

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

Community Treasure Hunt

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

Start Hunting!

Translated by