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
Add ignition gazebo support for PX4 Software-In-The-Loop simulations #17889
Conversation
This commit adds SITL support for ignition gazebo. Ignition gazebo is a replacement for the "classic" gazebo for future applications. The simulation can be run as the following ``` make px4_sitl ignition ```
Few questions:
|
This is in fact a migration of the current sitl_gazebo into
It conflicts with the current gazebo implementation. However, since gazebo is one of the most widely used simulation framework, I think it makes sense to support it as long as OSRF supports classical gazebo
Also, ignition gazebo does not yet include all the subset of features that gazebo used to support, so doing a hard switch now would leave a lot of use cases left alone. You can check out what features ignition gazebo has in https://ignitionrobotics.org/features Currently there are no direct benefits for our use case, but some differences to note.
|
.gitmodules
Outdated
@@ -74,3 +74,6 @@ | |||
[submodule "src/lib/events/libevents"] | |||
path = src/lib/events/libevents | |||
url = https://github.com/mavlink/libevents.git | |||
[submodule "Tools/sitl_ign_gazebo"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really want to keep this naming?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that's ugly. 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Removed submodule Tools/sitl_ign_gazebo Fix
Describe problem solved by this pull request
This commit adds SITL support for ignition gazebo. Ignition gazebo is a replacement for the "classic" gazebo for future applications.
Since PX4 uses gazebo for a lot of integration testing and simulated environments, it makes a lot of sense to integrate into the new ignition gazebo.
Describe your solution
This implementation is a first iteration supporting SITL in the ignition environment.
mavlink_interface_plugin
was implemented as an interface forHIL_*
mavlink messages between px4 andignition gazebo
A demonstration of the package is shown in the video below:
Test data / coverage
The dependency that is only needed in the regular environment is ignition edifice. This is the latest LTS release of ignition gazebo. Supported environments include Ubuntu Focal / Ubuntu Bionic
The simulation can be run as the following
Additional context