-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Update GZBridge to be able to use gazebo airspeed. Add quadtailsitter. #23455
Conversation
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.
LGTM!
@jmackay2 Could you rebase the PR so we can see if the SITL failures are real? |
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.
Thanks!
Is this causing "make px4_sitl" to fail? In file included from /root/PX4-Autopilot/src/modules/simulation/gz_bridge/GZBridge.cpp:34: |
It certainly sounds like it. What version of Gazebo are you using and what version of gz-sensors and gz-msgs do you have? Airspeed should have come into gz sensors and msgs about a year ago. I see the air-speed library in gz-sensors in the latest gz versions: 7.3.0, and 8.2.0. I do not see it in gz-sensors 6 though. |
I am using bash ./PX4-Autopilot/Tools/setup/ubuntu.sh for 22.04 |
We need to do something to keep builds working on 22.04. |
…ilsitter. (#23455)" (#23583) This reverts commit 7e45f49. Co-authored-by: jmackay2 <[email protected]>
…d quadtailsitter. (#23455)""
Sorry about breaking the 22.04 build. I am on 22.04, but I am running with gz-harmonic. I should have done more testing with the default 22.04 gz-garden to make sure it worked. I assumed there were airspeed was in gz::msgs since it was in gz::sensors, but I guess not. The quickest fix that I tried was to change |
Thanks @hamishwillee for the reminder that I slipped that bug fix in. I'll make a small PR for it. |
We should probably switch to harmonic since that is the LTS. However, this would mean that we explicitly state that we are going to make a breaking change. |
PX4#23455) * Update GZBridge to be able to use gazebo airspeed. Add gz quadtailsitter. * Fix formatting --------- Co-authored-by: jmackay2 <[email protected]>
…ilsitter. (PX4#23455)" (PX4#23583) This reverts commit 7e45f49. Co-authored-by: jmackay2 <[email protected]>
Solved Problem
When adding a gz tailsitter, I found out that the current airspeed simulation is hard-coded to use the body velocity in the x direction. This doesn't work for the tailsitter, where the airspeed sensor needs to be rotated by 90 degrees to work correctly in fixed-wing flight.
Solution
This uncomments the gazebo airspeed integrations in the GZBridge and adds minor fixes to work correctly. This also adds a gazebo quadtailsitter configuration.
Changelog Entry
For release notes:
Test coverage