ethz-asl / data-driven-dynamics

Data Driven Dynamics Modeling for Aerial Vehicles
Other
99 stars 14 forks source link

Fix SITL run script for model override #46

Closed Jaeyoung-Lim closed 3 years ago

Jaeyoung-Lim commented 3 years ago

Problem Description The sitl_run script would fail when you are trying to run one of the default models in PX4.

This adds some logic into the run script

Testing For example when you want to run the default PX4 standard_vtol you can run

Tools/sitl_run.sh -m standard_vtol

This will use the standard_vtol.sdf that is located in https://github.com/PX4/PX4-SITL_gazebo/tree/master/models/standard_vtol

If you want to run the standard_vtol with PX4 but with a different model (e.g. standard_vtol_aerodynamics in this repo)

Tools/sitl_run.sh -m standard_vtol -s standard_vtol_aerodynamics

Additional Context