-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
GazeboDrone project added to connect a gazebo drone to the AirSim drone #3754
Conversation
with the option of using binaries
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.
looks good other than some minor comments
Is it feasible to replace the gazebo drone for a fixed wing model, to run the physics behind a plane, but still use AirSim for the data collection? |
@nkbeebe. Yes, you can do that. It would be great if someone contributes with an API method to set the rotors' angular velocity. Take a look at this tutorial on how to change the drone mesh: https://youtu.be/Bp86WiLUC80. You need to get the mesh of the vehicle you are trying to simulate. You would help the community a lot if you post a video on youtube on how to run AirSim with FixedWing in the way you decide to do it. Keep me updated please. |
But is that using Gazebo physics of a drone? Akin to simply replacing the Gazebo drone with a plane, but moving the plane as a drone would? My question is more of using the physics engine of a Gazebo plane, alongside the mesh. So the plane moves in the dynamics a Gazebo plane would move - not a gazebo drone would. |
Yes, I have understood your question. I'm not 100% sure if it is going to work, I think so. The GazeboDrone project subscribes to the pose updates of the drone and sends them to the AirSim drone through setVehiclePose, so if you use a plane in gazebo and the GazeboDrone project, can subscribe to its pose, then it will work. |
Sorry if this is a simple question, but following the readme for this merge, I need to have UE4 running with the original AirSim build using clang, then once that is up along with gazebo, I can use the command ./GazeboDrone to then start that simulation? And for the build step, what directory am I creating a new build directory? I ask because when I run this command, I get a "The source directory "/Users/nikitabeebe/Documents/GitHub/airsim" does not appear to contain CMakeLists.txt." |
Hi @nikitabeebe! You are correct about the order. |
Also, does this project require the use of PX4, or can it be run without that program entirely? (Just using QGroundControl for joystick input) |
Hi @nikitabeebe! I think QGroundControl only works with PX4. But yes, you should be able to connect to gazebo without PX4 connected to it. |
Thank you for confirming. That's what I initially thought @jonyMarino. If you could then, can you take a look at an issue request I created, as I am still unable to compile and run this project like you have demonstrated. I've tried to rule out all the issues with versions or missing dependencies, but I keep getting hung up on the make task for building the GazeboDrone... Any input or insight into possible fixes would be a life saver! |
Fixes: #2380
About
This CMake project allows connecting a gazebo drone to the AirSim drone, using the gazebo drone as a flight dynamic model (FDM) and AirSim to generate sensor data.
How Has This Been Tested?
Following the added Readme.md
and running PX4 with
make px4_sitl gazebo_iris
together with QGroundControl.Airsim using the compiled Blocks binary.
Screenshots (if appropriate):
airsim-gazebo.mp4