Star3.world
Go to the documentation of this file.
1 
3 [CONSTANTS]
4 
5 % Length of links for leg 1
6 length_1_1:=2.5
7 length_1_2:=5.5
8 length_1_3:=9
9 
10 % Length of links for leg 2
11 length_2_1:=6
12 length_2_2:=10
13 length_2_3:=5
14 
15 % Length of links for leg 3
16 length_3_1:=5
17 length_3_2:=7.5
18 length_3_3:=10
19 
20 % Anchor points for the 3 legs
21 % (in the x-z) plane
22 a1_x:= 0
23 a1_z:= 0
24 
25 a2_x:= 2
26 a2_z:= 3.5
27 
28 a3_x:=-4
29 a3_z:= 3.5
30 
31 
32 % Radii of cylinders and spheres used for representation
33 rc := 0.1
34 rs := 0.225
35 
36 [LINKS]
37  % A ground link without associated geometry
38  ground_link
39 
40  % leg 1
41  link_1_1: cylinder rc (0,0,0) (length_1_1,0,0) yellow decoration
42  sphere rs (0,0,0) black decoration
43  link_1_2: cylinder rc (0,0,0) (length_1_2,0,0) green decoration
44  sphere rs (0,0,0) black decoration
45  link_1_3: cylinder rc (0,0,0) (length_1_3,0,0) yellow decoration
46  sphere rs (0,0,0) black decoration
47 
48  % leg 1
49  link_2_1: cylinder rc (0,0.5,0) (length_2_1,0.5,0) yellow decoration
50  sphere rs (0,0.5,0) black decoration
51  link_2_2: cylinder rc (0,0.5,0) (length_2_2,0.5,0) green decoration
52  sphere rs (0,0.5,0) black decoration
53  link_2_3: cylinder rc (0,0.5,0) (length_2_3,0.5,0) yellow decoration
54  sphere rs (0,0.5,0) black decoration
55 
56  % leg 1
57  link_3_1: cylinder rc (0,1,0) (length_3_1,1,0) yellow decoration
58  sphere rs (0,1,0) black decoration
59  link_3_2: cylinder rc (0,1,0) (length_3_2,1,0) green decoration
60  sphere rs (0,1,0) black decoration
61  link_3_3: cylinder rc (0,1,0) (length_3_3,1,0) yellow decoration
62  sphere rs (0,1,0) black decoration
63  sphere rs (length_3_3,1,0) black decoration
64  sphere rs (length_3_3,0.5,0) black decoration
65  sphere rs (length_3_3,0,0) black decoration
66  cylinder rc (length_3_3,1,0) (length_3_3,-0.75,0) red
67  sphere rs (length_3_3,-0.75,0) red
68 
69 [JOINTS]
70 
71  REVOLUTE: ground_link (a1_x,0,a1_z)+(0,1,0)
72  link_1_1 ( 0,0, 0)+(0,1,0)
73  REVOLUTE: link_1_1 (length_1_1,0,0)+(0,1,0)
74  link_1_2 ( 0,0,0)+(0,1,0)
75  REVOLUTE: link_1_2 (length_1_2,0,0)+(0,1,0)
76  link_1_3 ( 0,0,0)+(0,1,0)
77 
78  REVOLUTE: ground_link (a2_x,0,a2_z)+(0,1,0)
79  link_2_1 ( 0,0, 0)+(0,1,0)
80  REVOLUTE: link_2_1 (length_2_1,0,0)+(0,1,0)
81  link_2_2 ( 0,0,0)+(0,1,0)
82  REVOLUTE: link_2_2 (length_2_2,0,0)+(0,1,0)
83  link_2_3 ( 0,0,0)+(0,1,0)
84 
85  REVOLUTE: ground_link (a3_x,0,a3_z)+(0,1,0)
86  link_3_1 ( 0,0, 0)+(0,1,0)
87  REVOLUTE: link_3_1 (length_3_1,0,0)+(0,1,0)
88  link_3_2 ( 0,0,0)+(0,1,0)
89  REVOLUTE: link_3_2 (length_3_2,0,0)+(0,1,0)
90  link_3_3 ( 0,0,0)+(0,1,0)
91 
92  REVOLUTE: link_1_3 (length_1_3,0,0)+(0,1,0)
93  link_2_3 (length_2_3,0,0)+(0,1,0)
94 
95  REVOLUTE: link_2_3 (length_2_3,0,0)+(0,1,0)
96  link_3_3 (length_3_3,0,0)+(0,1,0)
97 
98  REVOLUTE: link_1_3 (length_1_3,0,0)+(0,1,0)
99  link_3_3 (length_3_3,0,0)+(0,1,0)
100 
101 
102 [OBSTACLES]
103  % In the WAFR example no obstacles are considered
104 
105  % Obstacles shared in ISRR and IJRR
106  box1 : body "bodies/obstacle1" color (0.1,0.1,0.9)
107  box2 : body "bodies/obstacle2" color (0.1,0.1,0.9)
108  box3 : body "bodies/obstacle3" color (0.1,0.1,0.9)
109 
110  % ISRR
111  % box4 : body "bodies/obstacle4" color (0.1,0.1,0.9)
112  % box5 : body "bodies/obstacle5" color (0.1,0.1,0.9)
113 
114  % IJRR (bug trap)
115  box4 : body "bodies/obstacle6" color (0.1,0.1,0.9)
116  box5 : body "bodies/obstacle7" color (0.1,0.1,0.9)
117 
118 [COLLISIONS]
119 
120 % do not Check : all
121  Check: link_3_3, box1
122  Check: link_3_3, box2
123  Check: link_3_3, box3
124  Check: link_3_3, box4
125  Check: link_3_3, box5
126