[Scilab-users] plotting 2 robots in same graphic

hvn huubvanniekerk at yahoo.com
Mon Feb 23 20:34:46 CET 2015


Hi,

I'm using v 5.5.1 with the Robotics Toolbox and want to display 2 
manipulators in the same graphic. Following the Help and the Toolbox 
demo, I write this code:

//define links
L1 = Link('d',0,'a',1,'alpha',%pi/2);
L2 = Link('d',0,'a',1,'alpha',%pi/4);
L3 = Link('d',0,'a',1,'alpha',%pi/3);
L4 = Link('d',0,'a',1,'alpha',%pi/5);

// create lists
La = list(L1, L2);
Lb = list(L3, L4);

//couple and create robots
bot1 = SerialLink(La, 'name', 'bot1');
//bot2 = SerialLink(Lb, 'name', 'bot2','base',transl(-1, 1, 0));

//define end effector positions
pos1 = [0.1 0.2];
pos2 = [0.2 0.8];

// draw robots
plot_robot(bot1, pos1);
bot2 = SerialLink(Lb, 'name', 'bot2','base',transl(-1, 1, 0));
plot_robot(bot2, pos2)

ending up with 1 manipulator in 1 graphic. What do I do wrong ?

Thanks




More information about the users mailing list