MATLAB Answers

how to create 3 link robot using robotic toolbox

249 views (last 30 days)
I'm trying to create a 3 links revolute robot using robotic toolbox release 8.
I define the links as below:
L1=link([0 1 0 0 0],'standard')
L2=link([0 1 0 0 0],'standard')
L3=link([0 1 0 0 0],'standard')
r=robot({L1 L2 L3})
plot(r,[1 1])
but it returns error"Insufficient columns in q"
how to solve this?

  5 Comments

Show 2 older comments
ANDREWS VIMAL
ANDREWS VIMAL on 14 Apr 2016
sry not arm=Serialink,it is r=SerialLink
Keval Shah
Keval Shah on 21 Feb 2017
Im not able to form transformation matrix with link.A, says, too many i/p arguments
esraa
esraa on 25 Apr 2017
Excuse me I am new to this , but can you tell me on what basis are the values assigned to q1, q2 and q ?

Sign in to comment.

Accepted Answer

Chirag Gupta
Chirag Gupta on 22 Apr 2011
Edited: Walter Roberson on 21 Feb 2017
Try this:
L1 = link([0 1 0 0],'standard')
L2 = link([0 1 0 0],'standard')
L3 = link([0 1 0 0],'standard')
r = robot({L1,L2,L3})
plot(r,[1,1,1]);
The last matrix [1,1,1] is the default positions of the links.
To play further, try
drivebot(r)

  3 Comments

Cheng Yoong
Cheng Yoong on 23 Apr 2011
Can I use the robotic tool to create a GUI software and export it as .exe file?
öncü uzun
öncü uzun on 3 Apr 2020
Undefined function 'link' for input arguments of type 'double'.
it is giving this error
Walter Roberson
Walter Roberson on 4 Apr 2020
The references to link should be references to Link
The functions are from the Peter Corke Robotics toolbox https://petercorke.com/toolboxes/robotics-toolbox/

Sign in to comment.

More Answers (0)