|
22 | 22 | </plugin> |
23 | 23 | <plugin filename="gz-sim-imu-system" |
24 | 24 | name="gz::sim::systems::Imu"> |
| 25 | + <gravity_source>earth</gravity_source> |
| 26 | + <gravity_expo>-2.0</gravity_expo> |
25 | 27 | </plugin> |
26 | 28 |
|
27 | 29 | <plugin filename="GravityPlugin" |
28 | 30 | name="GravityPlugin"> |
29 | 31 | <debug>0</debug> |
30 | | - <source>earth</source> |
| 32 | + <gravity_source>earth</gravity_source> |
| 33 | + <gravity_expo>-2.0</gravity_expo> |
31 | 34 | </plugin> |
32 | 35 |
|
33 | 36 | <!-- disable planar gravity --> |
|
53 | 56 | <direction>-0.5 0.1 -0.9</direction> |
54 | 57 | </light> |
55 | 58 |
|
56 | | - <model name="enu_axes"> |
| 59 | + <!-- <model name="enu_axes"> |
57 | 60 | <static>1</static> |
58 | 61 | <link name="link"> |
59 | 62 | <visual name="r"> |
|
105 | 108 | </material> |
106 | 109 | </visual> |
107 | 110 | </link> |
108 | | - </model> |
| 111 | + </model> --> |
109 | 112 |
|
110 | 113 | <!-- source of gravity --> |
111 | 114 | <model name="earth"> |
112 | 115 | <static>0</static> |
113 | 116 | <link name="earth"> |
114 | 117 | <gravity>0</gravity> |
| 118 | + <!-- expo = -2.0 --> |
115 | 119 | <inertial> |
116 | | - <mass>5.972E14</mass> |
| 120 | + <mass>1.50E+13</mass> |
117 | 121 | <inertia> |
118 | | - <ixx>2.38880E+16</ixx> |
| 122 | + <ixx>5.99314E+14</ixx> |
119 | 123 | <ixy>0</ixy> |
120 | 124 | <ixz>0</ixz> |
121 | | - <iyy>2.38880E+16</iyy> |
| 125 | + <iyy>5.99314E+14</iyy> |
122 | 126 | <iyz>0</iyz> |
123 | | - <izz>2.38880E+16</izz> |
| 127 | + <izz>5.99314E+14</izz> |
124 | 128 | </inertia> |
125 | 129 | </inertial> |
| 130 | + <!-- expo = -0.5 --> |
| 131 | + <!-- <inertial> |
| 132 | + <mass>4.74E+11</mass> |
| 133 | + <inertia> |
| 134 | + <ixx>1.89520E+13</ixx> |
| 135 | + <ixy>0</ixy> |
| 136 | + <ixz>0</ixz> |
| 137 | + <iyy>1.89520E+13</iyy> |
| 138 | + <iyz>0</iyz> |
| 139 | + <izz>1.89520E+13</izz> |
| 140 | + </inertia> |
| 141 | + </inertial> --> |
126 | 142 | <collision name="collision"> |
127 | | - <pose degrees="true">0 0 0 90 0 0</pose> |
| 143 | + <pose degrees="true">0 0 0 90 0 -90</pose> |
128 | 144 | <geometry> |
129 | 145 | <sphere> |
130 | 146 | <radius>10</radius> |
131 | 147 | </sphere> |
132 | 148 | </geometry> |
133 | | - </collision> |
| 149 | + <surface> |
| 150 | + <friction> |
| 151 | + <ode> |
| 152 | + <mu>1.0</mu> |
| 153 | + <mu2>1.0</mu2> |
| 154 | + </ode> |
| 155 | + </friction> |
| 156 | + </surface> |
| 157 | + </collision> |
134 | 158 | <visual name="visual"> |
135 | | - <pose degrees="true">0 0 0 90 0 0</pose> |
| 159 | + <pose degrees="true">0 0 0 90 0 -90</pose> |
136 | 160 | <geometry> |
137 | 161 | <sphere> |
138 | 162 | <radius>10</radius> |
|
154 | 178 |
|
155 | 179 | <plugin filename="gz-sim-velocity-control-system" |
156 | 180 | name="gz::sim::systems::VelocityControl"> |
157 | | - <initial_angular>0 0 0.1</initial_angular> |
| 181 | + <initial_angular>0 0 0.0</initial_angular> |
158 | 182 | </plugin> |
159 | 183 |
|
160 | 184 | </model> |
|
201 | 225 | <plugin filename="InitialVelocityPlugin" |
202 | 226 | name="InitialVelocityPlugin"> |
203 | 227 | <debug>0</debug> |
204 | | - <linear>0 51.55 0</linear> |
| 228 | + <linear>0 8.164965809 0</linear> |
205 | 229 | <link>base_link</link> |
206 | 230 | <p_gain>50</p_gain> |
207 | 231 | <i_gain>1</i_gain> |
|
255 | 279 | <plugin filename="InitialVelocityPlugin" |
256 | 280 | name="InitialVelocityPlugin"> |
257 | 281 | <debug>0</debug> |
258 | | - <linear>-44.64 0 0</linear> |
| 282 | + <linear>-7.071067812 0 0</linear> |
259 | 283 | <link>base_link</link> |
260 | 284 | <p_gain>50</p_gain> |
261 | 285 | <i_gain>1</i_gain> |
|
309 | 333 | <plugin filename="InitialVelocityPlugin" |
310 | 334 | name="InitialVelocityPlugin"> |
311 | 335 | <debug>0</debug> |
312 | | - <linear>0 65.0 0</linear> |
| 336 | + <linear>0 10.0 0</linear> |
313 | 337 | <link>base_link</link> |
314 | 338 | <p_gain>50</p_gain> |
315 | 339 | <i_gain>1</i_gain> |
|
321 | 345 | </plugin> |
322 | 346 | </model> |
323 | 347 |
|
| 348 | + <!-- <include> |
| 349 | + <uri>model://iris_with_gimbal</uri> |
| 350 | + <pose degrees="true">0 0 10.3 0 0 90</pose> |
| 351 | + </include> --> |
| 352 | + |
| 353 | + |
| 354 | + <!-- |
| 355 | + Earth uses ECEF frame |
| 356 | + X - in plane of equator through centre and meridian 0 |
| 357 | + Y - in plane of equator through centre and meridian 90 |
| 358 | + Z - through centre and north pole |
| 359 | +
|
| 360 | + Transforms to local NED for different starting positions |
| 361 | + <10 0 0 90 0 90> |
| 362 | + lat 0, lon 0, hdg 90 |
| 363 | + NED |
| 364 | + X_ned = Z_ecef |
| 365 | + Y_ned = Y_ecef |
| 366 | + Z_ned = -X_ecef |
| 367 | + <gazeboXYZToNED degrees="true">10 0 0 0 -90 0</gazeboXYZToNED> |
| 368 | + --> |
| 369 | + |
| 370 | + <include> |
| 371 | + <uri>model://omni4rover</uri> |
| 372 | + <pose degrees="true">10.3 0 0 90 -90 90</pose> |
| 373 | + </include> |
| 374 | + |
324 | 375 | </world> |
325 | 376 | </sdf> |
0 commit comments