Code Won't Animate in 2-D Path Tracing With Inverse Kinematics

I am looking at the following example:
The code after this line doesn't animate. I just see an image of the previos figure's rendering. How do I get it to animate?
Set up a rateControl object to display the robot trajectory at a fixed rate of 15 frames per second. Show the robot in each configuration from the inverse kinematic solver. Watch as the arm traces the circular trajectory shown. -------> THIS DIESN'T HAPPEN; NOTHING IS DISPLAYED.
I ran the script file, and only the first image on the page is displayed.

 Accepted Answer

Did you try opening the example file itself?
openExample('robotics/TwoDInverseKinematicsExampleExample')

8 Comments

Yes, I ran this: openExample('robotics/TwoDInverseKinematicsExampleExample')
To clarify, i did run exactly that, but it doesn't work (the animation or the second show command).
What version of MATLAB are you using?
I am using the online version. this is the URL: Matlab Online 2020b
And this is what I am trying to run: /MATLAB Drive/Examples/R2020b/robotics/TwoDInverseKinematicsExampleExample
I see the same thing in MATLAB Online. I think the animation is running, but it's not able to display it in the figure window until it finishes. I don't know the exact reason why, but show is part of the Robotics System Toolbox, which is not yet supported in MATLAB Online. See here for a list of limitations.
Ok, thanks for letting me know. Can you please tell me how I can install the Robot System Tollbox package to my desktop version?
It suddenly seems to be working online now.

Sign in to comment.

More Answers (0)

Products

Release

R2020b

Asked:

N
N
on 22 Jan 2021

Edited:

on 29 Jan 2021

Community Treasure Hunt

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

Start Hunting!