BarretArm.world
Go to the documentation of this file.
1 
4 [CONSTANTS]
5 
6  d1:=0.55
7  a1:=0.045
8 
9  d2:= 0.3
10 
11  % to facilitate fixing the arm configuration we
12  % define its position as an angle plus a range
13  % (the range is set to zero to fix the angle)
14 
15  theta1:=-Pi/15.4
16  theta2:=Pi/2
17  theta3:=-Pi/2
18  theta4:=Pi/2
19  theta5:=Pi
20  theta6:=Pi/2
21  theta7:=Pi
22 
23  theta8:=0
24  theta9:=0
25  theta10:=0
26  theta11:=0
27  theta12:=0
28 
29  range1:=pi/2
30  range2:=pi/2
31  range3:=pi/2
32  range4:=pi/2
33  range5:=pi/2
34  range6:=pi/2
35  range7:=pi/2
36 
37  range8:=pi/2
38  range9:=pi/2
39  range10:=pi/2
40  range11:=pi/2
41  range12:=pi/2
42 
43  % color for the arm (sort of grey)
44  cr:=0.6
45  cg:=0.6
46  cb:=0.6
47 
48 [LINKS]
49 
50  % arm
51 
52  world
53 
54  arm0: body "bodies/barret-arm-0.off" color (cr,cg,cb)
55  arm1: body "bodies/barret-arm-1.off" color (cr,cg,cb)
56  arm2: body "bodies/barret-arm-2.off" color (cr,cg,cb)
57  arm3: body "bodies/barret-arm-3.off" color (cr,cg,cb)
58  arm4: body "bodies/barret-arm-4.off" color (cr,cg,cb)
59  arm5: body "bodies/barret-arm-5.off" color (cr,cg,cb)
60  arm6: body "bodies/barret-arm-6.off" color (cr,cg,cb)
61  arm7: body "bodies/barret-arm-7.off" color (cr,cg,cb)
62  body "bodies/barret-arm-7-b.off" color (cr,cg,cb)
63 
64 
65  % hand
66 
67  hand21: body "bodies/barret-arm-8.off" color (cr,cg,cb)
68  hand22: body "bodies/barret-arm-9.off" color (cr,cg,cb)
69 
70 
71  hand00: body "bodies/barret-arm-10.off" color (cr,cg,cb)
72  hand01: body "bodies/barret-arm-8.off" color (cr,cg,cb)
73  hand02: body "bodies/barret-arm-9.off" color (cr,cg,cb)
74 
75 
76  hand10: body "bodies/barret-arm-10.off" color (cr,cg,cb)
77  hand11: body "bodies/barret-arm-8.off" color (cr,cg,cb)
78  hand12: body "bodies/barret-arm-9.off" color (cr,cg,cb)
79 
80 [JOINTS]
81 
82  % j0
83  fix: world arm0 Txyz(-0.22,-0.14,-0.346)
84 
85  % j1
86  revolute: arm0 (0.22,0.14,0.346)+(0,0,1)
87  arm1 (0,0,0)+(0,0,1)
88  range [theta1-range1,theta1+range1]
89  +(1,0,0)
90  +(1,0,0)
91 
92  % j2
93  revolute: arm1 (0,0,0)+(0,1,0)
94  arm2 (0,0,0)+(0,0,1)
95  range [theta2-range2,theta2+range2]
96  +(1,0,0)
97  +(1,0,0)
98 
99  % j3
100  revolute: arm2 (0,0,0)+(0,1,0)
101  arm3 (0,0,0)+(0,0,-1)
102  range [theta3-range3,theta3+range3]
103  +(1,0,0)
104  +(1,0,0)
105 
106  % j4
107  revolute: arm3 (0.045,0,0.55)+(0,1,0)
108  arm4 (0,0,0)+(0,0,1)
109  range [theta4-range4,theta4+range4]
110  +(1,0,0)
111  +(1,0,0)
112 
113  % j5
114  revolute: arm4 (-0.045,0,0)+(0,1,0)
115  arm5 (0,0,0)+(0,0,-1)
116  range [theta5-range5,theta5+range5]
117  +(1,0,0)
118  +(1,0,0)
119 
120  % j6
121  revolute: arm5 (0,0,0.3)+(0,1,0)
122  arm6 (0,0,0)+(0,0,1)
123  range [theta6-range6,theta6+range6]
124  +(1,0,0)
125  +(1,0,0)
126 
127  % j7
128  revolute: arm6 (0,0,0)+(0,1,0)
129  arm7 (0,0,0)+(0,0,-1)
130  range [theta7-range7,theta7+range7]
131  +(1,0,0)
132  +(1,0,0)
133 
134  revolute: arm7 (-0.05,0,0.1515)+(0,1,0)
135  hand21 (0,0,0)+(0,0,1)
136  range [theta8-range8,theta8+range8]
137  +(0.707106781186548,0,0.707106781186548)
138  +(1,0,0)
139 
140  revolute: hand21 (0.07,0,0)+(0,0,1)
141  hand22 (0,0,0)+(0,0,1)
142  range [theta9-range9,theta9+range9]
143  +(0,1,0)
144  +(1,0,0)
145 
146  revolute: arm7 (0,-0.025,0.1515)+(0,0,1)
147  hand00 (0,0,0)+(0,0,1)
148  range [theta10-range10,theta10+range10]
149  +(1,0,0)
150  +(1,0,0)
151 
152  revolute: hand00 (0.05,0,0)+(0,-1,0)
153  hand01 (0,0,0)+(0,0,1)
154  range [theta11-range11,theta11+range11]
155  +(-0.707106781186548,0,0.707106781186548)
156  +(1,0,0)
157 
158  revolute: hand01 (0.07,0,0)+(0,0,1)
159  hand02 (0,0,0)+(0,0,1)
160  range [theta12-range12,theta12+range12]
161  +(0,1,0)
162  +(1,0,0)
163 
164  revolute: arm7 (0,0.025,0.1515)+(0,0,1)
165  hand10 (0,0,0)+(0,0,1)
166  range [theta10-range10,theta10+range10]
167  +(1,0,0)
168  +(1,0,0)
169 
170  revolute: hand10 (0.05,0,0)+(0,-1,0)
171  hand11 (0,0,0)+(0,0,1)
172  range [theta11-range11,theta11+range11]
173  +(-0.707106781186548,0,0.707106781186548)
174  +(1,0,0)
175 
176  revolute: hand11 (0.07,0,0)+(0,0,1)
177  hand12 (0,0,0)+(0,0,1)
178  range [theta12-range12,theta12+range12]
179  +(0,1,0)
180  +(1,0,0)
181