Draft
Conversation
Collaborator
|
@41Mo, could you please rebase your PR on |
Contributor
Author
|
@srmainwaring yeah, ofcourse. |
Collaborator
Ok - I'll mark as draft and wait for your request before reviewing. My rebased branch is here: https://github.com/srmainwaring/ardupilot_gazebo-1/tree/review/pr-catapult-plugin. It's the CMakeLists.txt that is conflicted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 support for a catapult via the catapult plugin.
This plugin will be useful for testing takeoff modes and will simplify usage of zephyr model e.g. #39
Details:
The catapult plugin implemented using a detachable joint system.
The plugin should be added directly to one of the models, either the Launchpad/catapult or the vehicle.
For example, in the case of the Zephyr Delta Wing model:
In this example, the plugin is added to the zephyr_catapult.sdf, which includes zephyr.sdf. Therefore, we should use the fully qualified name zephyr::wing inside the vehicle_link parameter. The catapult_link parameter should be done similarly.
The direction parameter is a three-component vector that describes the direction of the force applied by the catapult.
The final force applied by the catapult is calculated as force_magnitude * direction, and it is applied to the vehicle during the launch_duration.
Testing
Gazebo
SITL
Se takeoff mode and arm
Gazebo
publish message to topic
Launching with ardupilot plugin enabled:
2023-04-03_22-18-28.mp4
Launching without ardupilot plugin enabled.
2023-04-03_22-20-25.mp4
Current ISSUES/TODOS