-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3914 from jonyMarino/pr/changing_gazebodrone_build
Pr/changing gazebodrone build
- Loading branch information
Showing
5 changed files
with
93 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,3 @@ | ||
# General | ||
|
||
Derived from http://gazebosim.org/tutorials?tut=topics_subscribed | ||
|
||
Make sure you have installed gazebo dependencies | ||
|
||
``` | ||
sudo apt-get install libgazebo9-dev | ||
``` | ||
|
||
# AirLib build | ||
|
||
This project is built with g++, so AirLib needs to be built with g++ too. Change lines 56 and 57 of AirSim/build.sh with: | ||
``` | ||
export CC="gcc-8" | ||
export CXX="g++-8" | ||
``` | ||
then run ./setup.sh and ./build.sh | ||
|
||
# AirSim plugin | ||
|
||
The AirSim UE plugin needs to be built with clang, so you can't use the one compiled in the previous step. You can use [our binaries](https://github.com/microsoft/AirSim/releases) or you can clone AirSim again in another folder without the above change, and with that one, [run Blocks](https://microsoft.github.io/AirSim/build_linux/#how-to-use-airsim) or your environment. | ||
|
||
|
||
# AirSim settings | ||
|
||
Inside your `settings.json` file add this line: | ||
`"PhysicsEngineName":"ExternalPhysicsEngine"` | ||
# Build | ||
|
||
``` | ||
mkdir build && cd build | ||
cmake .. | ||
make | ||
``` | ||
|
||
# Run | ||
|
||
Run AirSim and Gazebo | ||
|
||
then run: | ||
|
||
``` | ||
cd build | ||
./GazeboDrone | ||
``` | ||
# Welcome to GazeboDrone | ||
|
||
This page has moved [here](https://github.com/microsoft/AirSim/blob/master/docs/gazebo_drone.md). |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Welcome to GazeboDrone | ||
|
||
GazeboDrone allows connecting a gazebo drone to the AirSim drone, using the gazebo drone as a flight dynamic model (FDM) and AirSim to generate environmental sensor data. It can be used for **Multicopters**, **Fixed-wings** or any other vehicle. | ||
|
||
|
||
## Dependencies | ||
|
||
### Gazebo | ||
|
||
Make sure you have installed gazebo dependencies: | ||
|
||
``` | ||
sudo apt-get install libgazebo9-dev | ||
``` | ||
|
||
### AirLib | ||
|
||
This project is built with GCC 8, so AirLib needs to be built with GCC 8 too. | ||
Run from your AirSim root folder: | ||
``` | ||
./clean.sh | ||
./setup.sh | ||
./build.sh --gcc | ||
``` | ||
|
||
## AirSim simulator | ||
|
||
The AirSim UE plugin needs to be built with clang, so you can't use the one compiled in the previous step. You can use [our binaries](https://github.com/microsoft/AirSim/releases) or you can clone AirSim again in another folder and buid it without the above option, then you can [run Blocks](build_linux.md#how-to-use-airsim) or your own environment. | ||
|
||
|
||
### AirSim settings | ||
|
||
Inside your `settings.json` file you need to add this line: | ||
`"PhysicsEngineName":"ExternalPhysicsEngine"`. | ||
You may want to change the visual model of the AirSim drone, for that you can follow [this tutorial.](https://youtu.be/Bp86WiLUC80) | ||
|
||
|
||
## Build | ||
|
||
Execute this from your AirSim root folder: | ||
``` | ||
cd GazeboDrone | ||
mkdir build && cd build | ||
cmake .. | ||
make | ||
``` | ||
|
||
## Run | ||
|
||
First run the AirSim simulator and your Gazebo model and then execute this from your AirSim root folder: | ||
|
||
``` | ||
cd GazeboDrone/build | ||
./GazeboDrone | ||
``` | ||
|
This file contains 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