Gazebo: Helicopter: add models for rotor head and helicopter #149
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a Gazebo model for a traditional helicopter with functioning swash plate and rotor head.
The model is a slightly scaled up version of a T-Rex 450 (1.75x). This is mainly because the CAD model for the rotor head is slightly oversize for the to-scale T-Rex 450, and as it is the most complex mechanical component it is simpler to scale the frame up than the rotor-head down.
Testing
The simulation was tested on the following systems:
Gazebo pre-requisites
This model uses some more advanced features from the Gazebo physics library that are not yet released in standard distributions of Gazebo. The model will not be stable without them (it will load, but the model will not operate correctly).
Until the features have been released it is necessary to build Gazebo (Harmonic or Ionic) from source and include the patches below by cherry-picking the commits into
gz-physics
andgz-sim
:Usage
Ensure the
GZ_SIM_RESOURCE_PATH
is updated to include these models:Run Gazebo
Run ArduPilot SITL
sim_vehicle.py -v ArduCopter -f helicopter --model json --add-param-file=$HOME/SITL_Models/Gazebo/config/helicopter.param --console --map
The model operates as a traditional helicopter with RC 3 controlling collective and RC 8 the motor interlock. RC 1 is roll cyclic, RC 2 pitch cyclic and RC 4 yaw via tail rotor.
Credits
The visuals for the rotor head and frame were derived from the following CAD models:
Permission to use the models in a derived work has been sought.