-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoarbot_param.m
More file actions
24 lines (20 loc) · 839 Bytes
/
oarbot_param.m
File metadata and controls
24 lines (20 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%
% define unit vectors
%
zz=zeros(3,1); ex = [1;0;0]; ey = [0;1;0]; ez = [0;0;1];
% parameters
wheel_r = 0.127;
d1 = 0.2755;
l1=0.3; l2=wheel_r+0.3+d1;
d2 = 0.41; d3=0.2073; e2=0.0098; d4=0.0741; d5=d4; d6=0.16;
aa = pi/6;
p89x = d4*(sin(aa)/sin(2*aa)) + 2*d4*(sin(aa)/sin(2*aa))*cos(2*aa);
p89y = 2*d4*sin(aa);
% POE robot def
robot.H = [ex ey ez ez ez ey -ey -ex [-sin(pi/6); cos(pi/6); 0] -ex];
robot.P = [0*ex 0*ex 0*ex l1*ex+l2*ez 0*ex 0*ex d2*ez+e2*ey 0*ex (p89x+d3)*ex-p89y*ey 0*ex (d6+d4*sin(aa)/sin(2*aa))*ex];
robot.joint_type = [1 1 0 1 0 0 0 0 0 0];
robot.joint_upper_limit = [100 100 100 0.5 deg2rad([120 130 180 10000 10000 10000])];
robot.joint_lower_limit = [-100 -100 -100 0 deg2rad([-120 -130 -71 -10000 -10000 -10000])];
robot.home = [0 0 0 0 0 0 0 pi/6 -pi/6 0];
[robot_tree, col_body] = defineRobot(robot, 0.01);