robot/plot
58
>> plot(p560, qr);
% display it at ready position
>> hold on
>> plot(p560b, qr);
% display it at ready position
>> t = [0:0.056:10];
>> jt = jtraj(qr, qstretch, t);
% trajectory to stretch pose
>> for q = jt', % for all points on the path
>>
plot(p560, q);
>>
plot(p560b, q);
>> end
To show multiple views of the same robot.
>> clf
>> figure
% create a new figure
>> plot(p560, qz);
% add a graphical robot
>> figure
% create another figure
>> plot(p560, qz);
% add a graphical robot
>> plot(p560, qr);
% both robots should move
Now the two figures can be adjusted to give different viewpoints, for instance, plan and elevation.
Cautionary
plot()
options are only processed on the first call when the graphical object is established, they are
skipped on subsequent calls. Thus if you wish to change options, clear the figure before replotting.
See Also
drivebot, fkine, robot
Robotics Toolbox Release 8
Peter Corke, December 2008
Summary :
robot/plot 58 >> figure % create a new figure >> % add a graphical robot >> figure % create another figure >>
Tags :
plotp560,figure,robot,graphical,options,add,ready,plotp560b,display,position,create,gtgt,iews