3RPR_model.world
Go to the documentation of this file.
1 
3 [CONSTANTS]
4 
5 % anchor points in the base
6 a1x:=0
7 a1y:=0
8 a2x:=15.91
9 a2y:=0
10 a3x:=0
11 a3y:=10
12 
13 % anchor points in the platform
14 b1x:=0
15 b1y:=0
16 b2x:=17.04
17 b2y:=0
18 cos1:=(16.54^2-20.84^2-17.04^2)/(-2*20.84*17.04)
19 sin1:=sqrt(1-cos1^2)
20 b3x:=20.84*cos1
21 b3y:=20.84*sin1
22 
23 % Lower/Upper range
24 l1:=10
25 l2:=40
26 
27 l3:=l2-l1
28 
29 % radious of the cylinder of the lower part of the leg
30 rc1:=0.15
31 
32 % radious of the cylinder of the upper part of the leg
33 rc2:=0.1
34 
35 % radious of the cylinder for the platform
36 rcp:=0.1
37 
38 [LINKS]
39 
40 base
41 
42 leg1_1: cylinder rc1 (0,0,0) (l1,0,0)
43 leg2_1: cylinder rc1 (0,0,0) (l1,0,0)
44 leg3_1: cylinder rc1 (0,0,0) (l1,0,0)
45 
46 leg1_2: cylinder rc2 (0,0,0) (l3,0,0)
47 leg2_2: cylinder rc2 (0,0,0) (l3,0,0)
48 leg3_2: cylinder rc2 (0,0,0) (l3,0,0)
49 
50 platform: cylinder rcp (b1x,0,b1y) (b2x,0,b2y)
51  cylinder rcp (b2x,0,b2y) (b3x,0,b3y)
52  cylinder rcp (b3x,0,b3y) (b1x,0,b1y)
53 
54 [JOINTS]
55 
56 revolute: base (a1x,0,a1y)+(0,1,0)
57  leg1_1 (0,0,0)+(0,1,0)
58 
59 revolute: base (a2x,0,a2y)+(0,1,0)
60  leg2_1 (0,0,0)+(0,1,0)
61 
62 revolute: base (a3x,0,a3y)+(0,1,0)
63  leg3_1 (0,0,0)+(0,1,0)
64 
65 prismatic: leg1_1 (0,0,0)+(1,0,0)
66  leg1_2 (0,0,0)+(1,0,0)
67  range [l1,l2]
68 
69 prismatic: leg2_1 (0,0,0)+(1,0,0)
70  leg2_2 (0,0,0)+(1,0,0)
71  range [l1,l2]
72 
73 prismatic: leg3_1 (0,0,0)+(1,0,0)
74  leg3_2 (0,0,0)+(1,0,0)
75  range [l1,l2]
76 
77 revolute: leg1_2 (l3,0,0)+(0,1,0)
78  platform (b1x,0,b1y)+(0,1,0)
79 
80 revolute: leg2_2 (l3,0,0)+(0,1,0)
81  platform (b2x,0,b2y)+(0,1,0)
82 
83 revolute: leg3_2 (l3,0,0)+(0,1,0)
84  platform (b3x,0,b3y)+(0,1,0)
85