You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_03_aerial_platforms/_gazebo_simulation/index.rst
+66-36Lines changed: 66 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -243,35 +243,64 @@ There are two aerial models available for simulation. These models are:
243
243
244
244
Hexrotor base model
245
245
246
-
In order to add an aerial model with sensors attached to it to the simulated world, Aerostack2 uses a configuration file, with JSON format, with the following structure:
247
-
248
-
.. code-block:: json
249
-
250
-
{
251
-
"world_name": "empty",
252
-
"drones": [
253
-
{
254
-
"model_type": "quadrotor_base",
255
-
"model_name": "drone_sim_0",
256
-
"xyz": [ 1.0, 1.0, 0.3 ],
257
-
"rpy": [ 0.0, 0.0, 0.0 ],
258
-
"payload": [
259
-
{
260
-
"model_type": "gps",
261
-
"model_name": "gps0"
262
-
},
263
-
{
264
-
"model_name": "gimbal",
265
-
"model_type": "gimbal_speed",
266
-
"payload": {
267
-
"model_name": "hd_camera0",
268
-
"model_type": "hd_camera"
269
-
}
270
-
}
271
-
]
272
-
}
273
-
]
274
-
}
246
+
In order to add an aerial model with sensors attached to it to the simulated world, Aerostack2 uses a configuration file, with YAML format, with the following structure:
247
+
248
+
.. code-block:: yaml
249
+
250
+
world_name: "empty"
251
+
drones:
252
+
- model_name: "drone0"
253
+
model_type: "quadrotor_base"
254
+
xyz:
255
+
- -2.0
256
+
- 0.0
257
+
- 0.3
258
+
rpy:
259
+
- 0
260
+
- 0
261
+
- 0.0
262
+
flight_time: 60
263
+
payload:
264
+
- model_name: "hd_camera0"
265
+
model_type: "hd_camera"
266
+
- model_name: "gimbal0"
267
+
model_type: "gimbal_position"
268
+
payload:
269
+
model_name: "hd_camera1"
270
+
model_type: "hd_camera"
271
+
272
+
- model_name: "drone1"
273
+
model_type: "quadrotor_base"
274
+
xyz:
275
+
- 2.0
276
+
- 0.0
277
+
- 0.3
278
+
rpy:
279
+
- 0
280
+
- 0
281
+
- 0.0
282
+
flight_time: 60
283
+
payload:
284
+
- model_name: "gimbal1"
285
+
model_type: "gimbal_speed"
286
+
payload:
287
+
model_name: "hd_camera1"
288
+
model_type: "hd_camera"
289
+
290
+
- model_name: "drone2"
291
+
model_type: "quadrotor_base"
292
+
xyz:
293
+
- 0.0
294
+
- 0.0
295
+
- 0.3
296
+
rpy:
297
+
- 0
298
+
- 0
299
+
- 0.0
300
+
flight_time: 60
301
+
payload:
302
+
- model_name: "hd_camera2"
303
+
model_type: "hd_camera"
275
304
276
305
Where:
277
306
@@ -315,21 +344,22 @@ Aerostack2 Gazebo platform provides a launch file, which parameters are:
315
344
* - namespace
316
345
- string
317
346
- Namespace of the platform, also named as drone id.
318
-
* - config_file
347
+
* - simulation_config_file
319
348
- string
320
349
- Path to the simulation configuration file.
321
350
* - control_modes_file
322
351
- string
323
352
- Optional. File path with the control modes configuration. Default the one in the package.
353
+
* - platform_config_file
354
+
- string
355
+
- Optional. File path with additional platform parameters.
356
+
* - log_level
357
+
- string
358
+
- Optional. Set Logging level. Default 'info'.
324
359
* - use_sim_time
325
360
- bool
326
361
- Optional. Syncronize simulation time with node time. Default false.
327
-
* - enable_takeoff_platform
328
-
- bool
329
-
- Optional. Enable takeoff by platfom. Default false.
330
-
* - enable_land_platform
331
-
- bool
332
-
- Optional. Enable land by platfom. Default false.
0 commit comments