|
4 | 4 |
|
5 | 5 | <defines> |
6 | 6 | <const name='eps' value='0.0001' /> |
7 | | - <const name='B1_height' value='0.5' /> |
| 7 | + <const name='B1_height' value='0.2' /> |
8 | 8 | <const name='B2_length' value='0.4' /> |
9 | 9 | <const name='B2_height' value='0.1' /> |
10 | 10 | <const name='B3_length' value='0.3' /> |
|
19 | 19 |
|
20 | 20 | <const name='claw_width' value='0.01' /> |
21 | 21 | <const name='claw_length' value='0.08' /> |
22 | | - <const name='claw_gap' value='0.054' /> |
| 22 | + <const name='claw_gap' value='0.1' /> |
23 | 23 | </defines> |
24 | 24 |
|
25 | 25 | <solids> |
|
28 | 28 | <ID value='B1'/> |
29 | 29 | <mass value='1'/> |
30 | 30 | <size radius='0.05' z='B1_height'/> |
31 | | - <pos x='0' y='0' z='B1_height/2'/> |
| 31 | + <pos x='0' y='0' z='-B1_height/2'/> |
32 | 32 | <rot_deg x='0' y='0' z='0'/> |
33 | 33 | <color_rgb r='128' g='128' b='128'/> |
34 | 34 | </cylinder> |
|
37 | 37 | <ID value='B2'/> |
38 | 38 | <mass value='1'/> |
39 | 39 | <size x='B2_length' y='B2_height/2' z='B2_height'/> |
40 | | - <pos x='B2_length/2' y='B3_height' z='B1_height+B2_height/2'/> |
| 40 | + <pos x='B2_length/2' y='B3_height' z='-B1_height+B2_height/2'/> |
41 | 41 | <rot_deg x='0' y='0' z='0'/> |
42 | 42 | <color_rgb r='32' g='32' b='32'/> |
43 | 43 | </cuboid> |
|
46 | 46 | <ID value='B3'/> |
47 | 47 | <mass value='1'/> |
48 | 48 | <size x='B3_length' y='B3_height' z='B3_height'/> |
49 | | - <pos x='B2_length+B3_length/2' y='0' z='B1_height+B2_height/2'/> |
| 49 | + <pos x='B2_length+B3_length/2' y='0' z='-B1_height+B2_height/2'/> |
50 | 50 | <rot_deg x='0' y='0' z='0'/> |
51 | 51 | <color_rgb r='64' g='64' b='64'/> |
52 | 52 | </cuboid> |
53 | 53 |
|
54 | 54 | <cuboid> |
55 | 55 | <ID value='B4'/> |
56 | 56 | <size x='B4_length' y='B4_height' z='B4_height'/> |
57 | | - <mass value='1'/> |
58 | | - <pos x='B2_length+B3_length+B4_length/2' y='0' z='B1_height+B2_height/2'/> |
| 57 | + <mass value='0.5'/> |
| 58 | + <pos x='B2_length+B3_length+B4_length/2' y='0' z='-B1_height+B2_height/2'/> |
59 | 59 | <color_rgb r='200' g='200' b='200'/> |
60 | 60 | <drag stokes='1e-2' roll='1e-1'/> |
61 | 61 | </cuboid> |
62 | 62 |
|
63 | 63 | <sphere> |
64 | 64 | <ID value='B5'/> |
65 | | - <mass value='1'/> |
| 65 | + <mass value='0.5'/> |
66 | 66 | <radius value='B5_length/2'/> |
67 | | - <pos x='B2_length+B3_length+B4_length+B5_length/2' y='0' z='B1_height+B2_height/2'/> |
| 67 | + <pos x='B2_length+B3_length+B4_length+B5_length/2' y='0' z='-B1_height+B2_height/2'/> |
68 | 68 | <rot_deg x='0' y='0' z='0'/> |
69 | 69 | <color_rgb r='128' g='0' b='0'/> |
70 | 70 | <drag stokes='1e-2' roll='1e-1'/> |
71 | 71 | </sphere> |
72 | 72 |
|
73 | 73 | <cuboid> |
74 | 74 | <ID value='B6'/> |
75 | | - <mass value='1'/> |
| 75 | + <mass value='0.2'/> |
76 | 76 | <size x='B6_length' y='B6_height' z='B6_height'/> |
77 | | - <pos x='B2_length+B3_length+B4_length+B5_length+B6_length/2' y='0' z='B1_height+B2_height/2'/> |
| 77 | + <pos x='B2_length+B3_length+B4_length+B5_length+B6_length/2' y='0' z='-B1_height+B2_height/2'/> |
78 | 78 | <rot_deg x='0' y='0' z='0'/> |
79 | 79 | <color_rgb r='0' g='64' b='64'/> |
80 | 80 | <drag stokes='1e-2' roll='1e-1'/> |
|
120 | 120 | <color_rgb r='64' g='64' b='64'/> |
121 | 121 | </cylinder> |
122 | 122 |
|
123 | | - <cuboid> |
| 123 | + <cylinder> |
124 | 124 | <ID value='B6_claw_base'/> |
125 | 125 | <solid id='B6'/> |
126 | | - <size x='claw_width' y='0.06' z='B6_height'/> |
| 126 | + <size x='claw_gap/2 + claw_width' z='B6_height'/> |
127 | 127 | <pos x='B6_length/2 + claw_width/2' y='0' z='0'/> |
128 | | - <rot_deg x='0' y='0' z='0'/> |
| 128 | + <rot_deg x='0' y='90' z='0'/> |
129 | 129 | <color_rgb r='128' g='128' b='128'/> |
130 | | - </cuboid> |
| 130 | + </cylinder> |
131 | 131 |
|
132 | 132 | <cuboid> |
133 | 133 | <ID value='B6_claw_finger_left'/> |
|
139 | 139 | </cuboid> |
140 | 140 |
|
141 | 141 | <cuboid> |
142 | | - <ID value='B6_claw_finger_right'/> |
| 142 | + <ID value='B6_claw_finger_240'/> |
143 | 143 | <solid id='B6'/> |
144 | 144 | <size x='claw_length' y='claw_width' z='B6_height'/> |
145 | | - <pos x='B6_length/2 + claw_length/2' y='claw_gap/2 + claw_width/2' z='0'/> |
146 | | - <rot_deg x='0' y='0' z='0'/> |
| 145 | + <pos x='B6_length/2 + claw_length/2' y='(-claw_gap/2 - claw_width/2) * -1/2' z='(-claw_gap/2 - claw_width/2) * -sqrt(3)/2'/> |
| 146 | + <rot_deg x='240' y='0' z='0'/> |
| 147 | + <color_rgb r='128' g='128' b='128'/> |
| 148 | + </cuboid> |
| 149 | + |
| 150 | + |
| 151 | + <cuboid> |
| 152 | + <ID value='B6_claw_finger_120'/> |
| 153 | + <solid id='B6'/> |
| 154 | + <size x='claw_length' y='claw_width' z='B6_height'/> |
| 155 | + <pos x='B6_length/2 + claw_length/2' y='(-claw_gap/2 - claw_width/2) * -1/2' z='(-claw_gap/2 - claw_width/2) * sqrt(3)/2'/> |
| 156 | + <rot_deg x='120' y='0' z='0'/> |
147 | 157 | <color_rgb r='128' g='128' b='128'/> |
148 | 158 | </cuboid> |
149 | 159 |
|
|
152 | 162 | <articulations> |
153 | 163 | <default> |
154 | 164 | <draw radius='0.015' height='0.25' rgb24='8F0000'/> |
155 | | - <ndraw radius='0.005' height='0.3' rgb24='8F0000'/> |
156 | | - <motor ri='1.5' li='0.001' ki='0.3' vmax='24' imax='10' active='1'/> |
157 | | - <rotor J='1e-2' bv='1e-3' fc='0'/> |
158 | | - <gear ratio='200' be='1e-1' ke='800'/> |
159 | | - <friction bv='0.02' fc='0.01'/> |
| 165 | + <motor ri='0.05' ki='0.3' vmax='24' imax='400' active='1'/> |
| 166 | + <gear ratio='1'/> |
| 167 | + <friction bv='0.05' fc='0.1'/> |
160 | 168 | <encoder ppr='1000' mean='0' stdev='0'/> |
161 | | - <controller mode='pidposition' kp='100' ki='0.1' kd='50' kf='0.0' active='1' period='10'/> |
| 169 | + <controller mode='pidposition' kp='20' ki='200' kd='0.0' kf='0.0' active='1' period='10'/> |
162 | 170 | <spring k='0' zeropos='0'/> |
163 | 171 | </default> |
164 | 172 |
|
165 | 173 |
|
166 | 174 | <joint> |
167 | 175 | <ID value='J1'/> |
168 | | - <pos x='0' y='0' z='B1_height'/> |
| 176 | + <pos x='0' y='0' z='-B1_height'/> |
169 | 177 | <axis x='0' y='0' z='1' wrap='1'/> |
170 | 178 | <connect B1='B1' B2='world'/> |
171 | 179 | <!--<limits Min='-360' Max='360'/> --> |
|
176 | 184 |
|
177 | 185 | <joint> |
178 | 186 | <ID value='J2'/> |
179 | | - <pos x='0' y='0' z='B1_height+B2_height/2'/> |
| 187 | + <pos x='0' y='0' z='-B1_height+B2_height/2'/> |
180 | 188 | <axis x='0' y='1' z='0'/> |
181 | 189 | <connect B1='B2' B2='B1'/> |
182 | 190 | <!--<type value='Slider'/>--> |
183 | 191 | <type value='Hinge'/> |
184 | | - <controller mode='pidposition' kp='100' ki='0.1' kd='50' kf='0.0' active='1' period='10'/> |
185 | 192 | </joint> |
186 | 193 |
|
187 | 194 | <joint> |
188 | 195 | <ID value='J3'/> |
189 | | - <pos x='B2_length' y='0' z='B1_height+B2_height/2'/> |
| 196 | + <pos x='B2_length' y='0' z='-B1_height+B2_height/2'/> |
190 | 197 | <axis x='0' y='1' z='0'/> |
191 | 198 | <connect B1='B3' B2='B2'/> |
192 | 199 | <!--<type value='Slider'/>--> |
|
195 | 202 |
|
196 | 203 | <joint> |
197 | 204 | <ID value='J4'/> |
198 | | - <pos x='B2_length+B3_length+B4_length/2' y='0' z='B1_height+B2_height/2'/> |
| 205 | + <pos x='B2_length+B3_length+B4_length/2' y='0' z='-B1_height+B2_height/2'/> |
199 | 206 | <axis x='1' y='0' z='0'/> |
200 | 207 | <connect B1='B4' B2='B3'/> |
201 | 208 | <type value='Hinge'/> |
202 | 209 | </joint> |
203 | 210 |
|
204 | 211 | <joint> |
205 | 212 | <ID value='J5'/> |
206 | | - <pos x='B2_length+B3_length+B4_length+B5_length/2' y='0' z='B1_height+B2_height/2'/> |
| 213 | + <pos x='B2_length+B3_length+B4_length+B5_length/2' y='0' z='-B1_height+B2_height/2'/> |
207 | 214 | <axis x='0' y='0' z='1'/> |
208 | 215 | <connect B1='B5' B2='B4'/> |
209 | 216 | <type value='Hinge'/> |
|
212 | 219 |
|
213 | 220 | <joint> |
214 | 221 | <ID value='J6'/> |
215 | | - <pos x='B2_length+B3_length+B4_length+B5_length+B6_length/2' y='0' z='B1_height+B2_height/2'/> |
| 222 | + <pos x='B2_length+B3_length+B4_length+B5_length+B6_length/2' y='0' z='-B1_height+B2_height/2'/> |
216 | 223 | <axis x='1' y='0' z='0'/> |
217 | 224 | <connect B1='B6' B2='B5'/> |
218 | 225 | <type value='Hinge'/> |
219 | 226 | </joint> |
220 | 227 |
|
221 | 228 | </articulations> |
222 | 229 |
|
| 230 | + <tools> |
| 231 | + <solenoid> |
| 232 | + <ID value='grab'/> |
| 233 | + <beam length='0.15' initial_width='0.011' final_width='0.011'/> |
| 234 | + <solid id='B6'/> |
| 235 | + <size x='claw_gap/2 + claw_width' z='B6_height'/> |
| 236 | + <rot_deg x='0' y='0' z='0'/> |
| 237 | + <tag value='00'/> |
| 238 | + <force fmax='10' k2='0.5'/> |
| 239 | + <color_rgb r='0' g='255' b='0'/> |
| 240 | + </solenoid> |
| 241 | + </tools> |
| 242 | + |
223 | 243 | </robot> |
224 | 244 |
|
0 commit comments