animation with the command show(robot) is very, very slow
Within a robotics class, in the control loop, I have the following code to render the robot movement:
show(robot,q_Gen,’PreservePlot’,true,’Frames’,’off’);
hold on
plot3(xd(1,1:i),xd(2,1:i),xd(3,1:i),’r’)
axis([-.4 .4 -.4 .4 -.1 1])
view(45,35)
drawnow
hold off
The robot has been defined outside of the loop by the command
robot = loadrobot(‘kinovaGen3′,’DataFormat’,’row’,’Gravity’,[0 0 -9.81]);
The animation is very, very slow in any o.s. and PC where it has been tried (Linux, Windows, MAC).
Is it a drawback that can not be avoided?Within a robotics class, in the control loop, I have the following code to render the robot movement:
show(robot,q_Gen,’PreservePlot’,true,’Frames’,’off’);
hold on
plot3(xd(1,1:i),xd(2,1:i),xd(3,1:i),’r’)
axis([-.4 .4 -.4 .4 -.1 1])
view(45,35)
drawnow
hold off
The robot has been defined outside of the loop by the command
robot = loadrobot(‘kinovaGen3′,’DataFormat’,’row’,’Gravity’,[0 0 -9.81]);
The animation is very, very slow in any o.s. and PC where it has been tried (Linux, Windows, MAC).
Is it a drawback that can not be avoided? Within a robotics class, in the control loop, I have the following code to render the robot movement:
show(robot,q_Gen,’PreservePlot’,true,’Frames’,’off’);
hold on
plot3(xd(1,1:i),xd(2,1:i),xd(3,1:i),’r’)
axis([-.4 .4 -.4 .4 -.1 1])
view(45,35)
drawnow
hold off
The robot has been defined outside of the loop by the command
robot = loadrobot(‘kinovaGen3′,’DataFormat’,’row’,’Gravity’,[0 0 -9.81]);
The animation is very, very slow in any o.s. and PC where it has been tried (Linux, Windows, MAC).
Is it a drawback that can not be avoided? drawnow, animation, show robot MATLAB Answers — New Questions