Skip to content

Commit 29ee160

Browse files
authored
Merge pull request #77 from fjanguita/gazebo-guide
Add missing step to Create GZ assets guide
2 parents a30904c + 35f408b commit 29ee160

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/_09_development/_develop_guide/_develop_guide/_create_gazebo_assets.rst

+15-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,21 @@ For the quadrotor, this template assumes your model has 4 links, one for each ro
247247
they are named m1_joint, m2_joint, m3_joint and m4_joint. These names can be changed to match your links names. The '_joint' is, however, necessary (if m1 is changed for YOUR_LINK, then its joint would have to be YOUR_LINK_joint).
248248
In addition to this, the base link of your quadrotor model must be 'base_link'.
249249

250-
With this template, your model can be renderized to match all the expected naming by Aerostack2 and is ready to fly using the Gazebo Simulator.
250+
For your model to be properly loaded by Aerostack2, it has to be added as a valid drone type at ``as2_gazebo_assets/src/as2_gazebo_assets/models/drone.py``. This script declares a class ``DroneTypeEnum`` to which your new drone model must be added.
251+
252+
.. code-block:: python
253+
254+
class DroneTypeEnum(str, Enum):
255+
"""Valid drone model types."""
256+
257+
QUADROTOR = 'quadrotor_base'
258+
HEXROTOR = 'hexrotor_base'
259+
CRAZYFLIE = 'crazyflie'
260+
X500 = 'x500'
261+
PX4 = 'px4vision'
262+
YOUR_MODEL_TYPE = 'your_model_type'
263+
264+
With this and your model added to a directory that has been added to the Gazebo resources path variable (check :ref:`this section <development_tutorials_gazebo_assets_objects>` of the adding Gazebo assets tutorial), your new drone is ready to be loaded by Gazebo and fly using Aerostack2.
251265

252266
.. _development_guide_create_assets_add_sensor:
253267

0 commit comments

Comments
 (0)