-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArm_High_Level_Testing.m
65 lines (60 loc) · 1.42 KB
/
Arm_High_Level_Testing.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
if(~libisloaded('dynamixel'))
loadlibrary('dynamixel', 'dynamixel.h')
end
% points = [0,100,30;
% 0,100,50;
% 0,100,70;
% 0,150,70;
% 30,150,70;
% 60,150,70;
% 90,150,70;
% 90,150,30;
% 90,150,20;
% 0,150,20;
% -90,150,20;];
%
%
points = [300,100;
200,400;
0,400;
0,280;
200,280;
200,150;
-200,150;
-200,400;];
Arm_Move_XYZ2(points,1);
PORTNUM = 6; %COM3
BAUDNUM = 1; %1Mbps
%%
%Move to position
% % calllib('dynamixel','dxl_initialize',PORTNUM,BAUDNUM);
% % Arm_Set_Speeds(50,30,30,30)
% % Arm_Set_Angles(30.878,0.557,30.32,10)
% % calllib('dynamixel','dxl_terminate');
%%
% % %Test moving at various speeds
% % calllib('dynamixel','dxl_initialize',PORTNUM,BAUDNUM);
% % %Set all angles to their origins
% % Arm_Set_Compliance_Slope(7,7,7,7)
% % Arm_Set_Speeds(30,30,30,30)
% % Arm_Set_Angles(0,0,0,0)
% % Arm_Wait_Moving()
% %
% % for i=1:2:6
% % a=30; %incriment in speed each move
% % c=20; %starting speed
% % s=a*i+c;
% % angle = 90;
% %
% % %Move to one point
% % Arm_Set_Speeds(s,s,s,s)
% % Arm_Set_Angles(0,angle,-angle,0)
% % Arm_Wait_Moving()
% %
% % s=a*(i+1)+c;
% %
% % Arm_Set_Speeds(s,s,s,s)
% % Arm_Set_Angles(0,-angle,angle,0)
% % Arm_Wait_Moving()
% % end
% % calllib('dynamixel','dxl_terminate');