BarretArm-Maze.world
Go to the documentation of this file.
1 
3 [CONSTANTS]
4 
5  % to facilitate fixing the arm configuration we
6  % define its position as an angle plus a range
7  % (the range is set to zero to fix the angle)
8 
9  theta1:=-Pi/15.4
10  theta2:=Pi/2
11  theta3:=-Pi/2
12  theta4:=Pi/2
13  theta5:=Pi
14  theta6:=Pi/2
15  theta7:=Pi
16 
17  range1:=0
18  range2:=0
19  range3:=0
20  range4:=0
21  range5:=0
22  range6:=0
23  range7:=0
24 
25  % color for the arm (sort of grey)
26  cr:=0.6
27  cg:=0.6
28  cb:=0.6
29 
30 [LINKS]
31 
32  % arm
33 
34  world
35 
36  maze: body "bodies/hardMaze.off"
37 
38  arm0: body "bodies/barret-arm-0.off" color (cr,cg,cb)
39 
40  arm1: body "bodies/barret-arm-1.off" color (cr,cg,cb)
41 
42  arm2: body "bodies/barret-arm-2.off" color (cr,cg,cb)
43 
44  arm3: body "bodies/barret-arm-3.off" color (cr,cg,cb) decoration
45  cylinder 0.05 (0,0,0.05) (0,0,0.5) red
46 
47  arm4: body "bodies/barret-arm-4.off" color (cr,cg,cb) decoration
48  cylinder 0.05 (-0.045,-0.05,0) (-0.045,-0.29,0) blue
49 
50  arm5: body "bodies/barret-arm-5.off" color (cr,cg,cb)
51 
52  arm6: body "bodies/barret-arm-6.off" color (cr,cg,cb)
53 
54  %rigid arm
55  arm7: body "bodies/barret-fixHand-1.off" color (cr,cg,cb) decoration
56  body "bodies/barret-fixHand-2.off" color (cr,cg,cb) decoration
57  body "bodies/barret-fixHand-3.off" color (cr,cg,cb) decoration
58  body "bodies/barret-fixHand-4.off" color (cr,cg,cb) decoration
59  body "bodies/barret-fixHand-5.off" color (cr,cg,cb) decoration
60  body "bodies/barret-fixHand-6.off" color (cr,cg,cb) decoration
61  body "bodies/barret-fixHand-7.off" color (cr,cg,cb) decoration
62  body "bodies/barret-fixHand-8.off" color (cr,cg,cb) decoration
63  body "bodies/barret-fixHand-9.off" color (cr,cg,cb) decoration
64  body "bodies/barret-fixHand-10.off" color (cr,cg,cb) decoration
65  cylinder 0.05 (0,0,0.05) (0,0,0.15) green decoration
66  % stick in arm
67  cylinder 0.005 (0,0.02,0.17) (0,-0.350,0.17)
68  sphere 0.015 (0,0.02,0.17) black decoration
69 
70 [JOINTS]
71 
72  fix: world maze Txyz(0.77,-0.14,-0.346)*Rz(Pi/2)
73 
74  fix: world arm0 Txyz(-0.22,-0.14,-0.346)
75 
76  revolute: arm0 (0.22,0.14,0.346)+(0,0,1)
77  arm1 (0,0,0)+(0,0,1)
78  %range [theta1-range1,theta1+range1]
79  % +(1,0,0)
80  % +(1,0,0)
81 
82  revolute: arm1 (0,0,0)+(0,1,0)
83  arm2 (0,0,0)+(0,0,1)
84  %range [theta2-range2,theta2+range2]
85  % +(1,0,0)
86  % +(1,0,0)
87 
88  revolute: arm2 (0,0,0)+(0,1,0)
89  arm3 (0,0,0)+(0,0,-1)
90  %range [theta3-range3,theta3+range3]
91  % +(1,0,0)
92  % +(1,0,0)
93 
94  revolute: arm3 (0.045,0,0.55)+(0,1,0)
95  arm4 (0,0,0)+(0,0,1)
96  %range [theta4-range4,theta4+range4]
97  % +(1,0,0)
98  % +(1,0,0)
99 
100  revolute: arm4 (-0.045,0,0)+(0,1,0)
101  arm5 (0,0,0)+(0,0,-1)
102  %range [theta5-range5,theta5+range5]
103  % +(1,0,0)
104  % +(1,0,0)
105 
106  revolute: arm5 (0,0,0.3)+(0,1,0)
107  arm6 (0,0,0)+(0,0,1)
108  %range [theta6-range6,theta6+range6]
109  % +(1,0,0)
110  % +(1,0,0)
111 
112  revolute: arm6 (0,0,0)+(0,1,0)
113  arm7 (0,0,0)+(0,0,-1)
114  %range [theta7-range7,theta7+range7]
115  % +(1,0,0)
116  % +(1,0,0)
117 
118  in_patch: arm7 (0,-0.350,0.17)+(0,-1,0)
119  world (0.43, -0.2886, -0.356)
120  (0.87, -0.2886, -0.356)
121  (0.43, 0.2314, -0.356)
122  (0.87, 0.2314, -0.356)
123 
124 [COLLISIONS]
125 
126  Do not check: all
127  Check : arm7,maze
128  Check : arm7,maze
129  Check : arm3,arm4
130  Check : arm3,arm7
131  Check : arm4,arm7
132 
133