Skip to content

Commit d8d992e

Browse files
committed
Updated Platforms-Gazebo docs.
1 parent 6bdf21d commit d8d992e

File tree

1 file changed

+66
-36
lines changed
  • docs/_03_aerial_platforms/_gazebo_simulation

1 file changed

+66
-36
lines changed

docs/_03_aerial_platforms/_gazebo_simulation/index.rst

Lines changed: 66 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -243,35 +243,64 @@ There are two aerial models available for simulation. These models are:
243243

244244
Hexrotor base model
245245

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"
275304
276305
Where:
277306

@@ -315,21 +344,22 @@ Aerostack2 Gazebo platform provides a launch file, which parameters are:
315344
* - namespace
316345
- string
317346
- Namespace of the platform, also named as drone id.
318-
* - config_file
347+
* - simulation_config_file
319348
- string
320349
- Path to the simulation configuration file.
321350
* - control_modes_file
322351
- string
323352
- 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'.
324359
* - use_sim_time
325360
- bool
326361
- 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.
362+
333363

334364
Example of launch command:
335365

0 commit comments

Comments
 (0)