Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port of Advanced Plane from Gazebo Classic to Gazebo #22167

Merged
merged 9 commits into from
Nov 6, 2023

Conversation

frede791
Copy link
Contributor

@frede791 frede791 commented Oct 2, 2023

Port

The advanced plane existed in old Gazebo classic and relies on the advanced liftdrag plugin. This port enables the user to fly the advanced plane in new Gazebo as well. The physics of the plane have not been modified and all required parameters have been taken from the original file. I have also submitted a PR for the advanced liftdrag plugin upstream in gz-sim (gazebosim/gz-sim#2185). Without this plugin, the plane will not fly. To test this before integration, one can get plugin files from the other PR, place them in the necessary directories (as shown in the PR), compile them and place the generated .so files in .gz/sim/plugins. This will allow you to fly the advanced plane in Gazebo through QGC or AMC.

Test coverage

Flew a test course with tight turns, ascends and loitering patterns. I saw no unusual behaviour.

Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the meshfile actually identical to that of the normal plane?

I don't think we need the full meshfile in tree

@Jaeyoung-Lim Jaeyoung-Lim marked this pull request as draft October 2, 2023 13:15
@frede791
Copy link
Contributor Author

frede791 commented Oct 2, 2023

In theory we don't need the meshes, but the "regular" plane currently does not exist in new gazebo, so I think it is actually needed. I could maybe specify a file path to the gz-classic repo but I think this is cleaner. If I port the regular plane as well, then I can change the mesh path and set them to the same one for both.

@Jaeyoung-Lim
Copy link
Member

In theory we don't need the meshes, but the "regular" plane currently does not exist in new gazebo, so I think it is actually needed. I could maybe specify a file path to the gz-classic repo but I think this is cleaner. If I port the regular plane as well, then I can change the mesh path and set them to the same one for both.

Here is where the "normal" plane is: https://github.com/PX4/PX4-Autopilot/tree/main/Tools/simulation/gz/models/rc_cessna

@frede791 frede791 marked this pull request as ready for review October 2, 2023 13:34
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we anyway need to wait for the gz PR to be merged since the plugin is on the gz side.

We can try to hold the plugin px4 side in the meantime and then deprecate it later if you want to get this in quicker

  • Also, please cleanup the commit history since there are large mesh files along the commits

Signed-off-by: frederik <[email protected]>
@frede791
Copy link
Contributor Author

frede791 commented Nov 2, 2023

@Jaeyoung-Lim gazebosim/gz-sim#2185 has been merged into gazebo. Advanced Plane can now be used in PX4.

@Jaeyoung-Lim
Copy link
Member

@frede791 Is it also released? Or when would it be part of the release?

@frede791
Copy link
Contributor Author

frede791 commented Nov 3, 2023

@Jaeyoung-Lim They are currently porting 7 -> 8 and I would think it would be released as part of that. gazebosim/gz-sim#2224

@Jaeyoung-Lim
Copy link
Member

@frede791 Could you mention this in the documentation? Otherwise, LGTM!

@frede791
Copy link
Contributor Author

frede791 commented Nov 6, 2023

@Jaeyoung-Lim PX4/PX4-user_guide#2843
The PR for the documentation is ready to go.

@Jaeyoung-Lim Jaeyoung-Lim merged commit 39fbfd8 into PX4:main Nov 6, 2023
85 checks passed
@frede791 frede791 deleted the advanced_p branch November 6, 2023 08:34
@Jaeyoung-Lim
Copy link
Member

@Jaeyoung-Lim PX4/PX4-user_guide#2843
The PR for the documentation is ready to go.

I meant more the fact that it is not available yet in the released gz distribution.

PerFrivik pushed a commit that referenced this pull request Nov 10, 2023
* started tiltrotor port

* added advanced plane and changed some parameters on the tiltrotor

* added advanced plane

* removed tiltrotor for clean push

* removed standard vtol old model file

* removing the standard vtol changes from this PR, since it is not part of the advanced plane

* removed advanced plane meshes as they are already found in the rc_cessna

* updating and improving airframe parameters

* updated mesh paths

Signed-off-by: frederik <[email protected]>

---------

Signed-off-by: frederik <[email protected]>
Co-authored-by: frederik <[email protected]>
@Jaeyoung-Lim Jaeyoung-Lim mentioned this pull request Aug 22, 2024
30 tasks
timzarhansen pushed a commit to timzarhansen/PX4-Autopilot that referenced this pull request Sep 3, 2024
* started tiltrotor port

* added advanced plane and changed some parameters on the tiltrotor

* added advanced plane

* removed tiltrotor for clean push

* removed standard vtol old model file

* removing the standard vtol changes from this PR, since it is not part of the advanced plane

* removed advanced plane meshes as they are already found in the rc_cessna

* updating and improving airframe parameters

* updated mesh paths

Signed-off-by: frederik <[email protected]>

---------

Signed-off-by: frederik <[email protected]>
Co-authored-by: frederik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants