Skip to content

Commit 9cfdfd8

Browse files
committed
extensively test all display options
1 parent e7efe63 commit 9cfdfd8

File tree

1 file changed

+33
-7
lines changed

1 file changed

+33
-7
lines changed

unit_test/SerialLinkTest.m

+33-7
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,39 @@ function plot3d_test(tc)
125125

126126

127127
function teach_test(tc)
128-
L(1)=Link([1 1 1 1 0]);
129-
L(2)=Link([0 1 0 1 0]);
130-
L(1).qlim = [-5 5];
131-
R1 = SerialLink(L,'name','robot1','comment', 'test robot','manufacturer', 'test',...
132-
'base', eye(4,4), 'tool', eye(4,4), 'offset', [1 1 0 0 0 0 ] );
133-
R1.teach;
134-
pause(0.5);
128+
tc.TestData.p560.teach();
129+
close all
130+
131+
tc.TestData.p560.teach('eul');
132+
close all
133+
tc.TestData.p560.teach('eul', 'deg');
134+
close all
135+
tc.TestData.p560.teach('rpy');
136+
close all
137+
tc.TestData.p560.teach('rpy/xyz');
138+
close all
139+
tc.TestData.p560.teach('rpy/zyx');
140+
close all
141+
tc.TestData.p560.teach('approach');
142+
close all
143+
144+
tc.TestData.p560.teach('callback', @(r, q) fprintf('hello') );
145+
close all
146+
147+
tc.TestData.p2.teach();
148+
close all
149+
150+
tc.TestData.p2.teach('2d');
151+
close all
152+
153+
154+
figure
155+
figure
156+
tc.TestData.p2.teach([0.2 0.3]);
157+
close all
158+
159+
close all
160+
135161
end
136162

137163
%%--------------------------------------------------------------------------

0 commit comments

Comments
 (0)