petercorke / robotics-toolbox-matlab

Robotics Toolbox for MATLAB
GNU Lesser General Public License v2.1
1.26k stars 440 forks source link

'tranimate' function cant work with matrix sequence. #103

Open xiangwu opened 2 years ago

xiangwu commented 2 years ago

The environment is Matlab2020a + RTB10.4 when ran the code below:

clear all;
clf;
view([30,45]);
frame = SE3();
trplot(frame, 'frame','base','color','r');
hold on;
r0 = eye(3,3);
r1 = rotx(30,'deg');
r2 = r1*roty(60,'deg');
w = ones(3,3,3);
w(:,:,1) = r0;
w(:,:,2) = r1;
w(:,:,3) = r2;
tranimate(w,'movie','1.gif');

always get the error:

Error while evaluating TimerFcn for timer 'timer-1' Index in position 3 exceeds array bounds (must not exceed 3).

no matter the w is 333 or 334 I have looked up the ref manual but only found the massage that 'tranimate' support 33N or 44N, there is no example. how can i solve this problem? Thanks a lot