Winter School 2022 (www.fit.tsu.ru/robotics)
- Ubuntu 18.04
- Robot Operating System(ROS) - Melodic
- Ardupilot Repository
- ardupilot_gazeebo repository
- Git (sudo apt-get install git)
- pymavlink (pip install pymavlink)
- MAVROS
https://releases.ubuntu.com/18.04/
http://wiki.ros.org/melodic/Installation/Ubuntu
Install the ros melodic full desktop.
https://github.com/mavlink/mavros/tree/master/mavros#installation
git clone https://github.com/ArduPilot/ardupilot.git
cd ardupilot
git submodule update --init --recursive
Tools/environment_install/install-prereqs-ubuntu.sh -y
. ~/.profile
./waf configure --board CubeBlack
./waf copter
Reffer bellow for links, and troubleshooting guide :
- https://ardupilot.org/dev/docs/building-setup-linux.html#building-setup-linux
- https://github.com/ArduPilot/ardupilot/blob/master/BUILD.md
- https://ardupilot.org/dev/docs/learning-ardupilot-the-example-sketches.html
git clone https://github.com/SwiftGust/ardupilot_gazebo
cd ardupilot_gazebo
mkdir build
cd build
cmake ..
make -j4
sudo make install
Set Path of Gazebo Models / Worlds... Open up .bashrc
sudo gedit ~/.bashrc
Copy & Paste following at the end of .bashrc file Use the correct path, will varry on the installation location
source /usr/share/gazebo/setup.sh
export GAZEBO_MODEL_PATH=~/ardupilot_gazebo/models:${GAZEBO_MODEL_PATH}
export GAZEBO_MODEL_PATH=~/ardupilot_gazebo/models_gazebo:${GAZEBO_MODEL_PATH}
export GAZEBO_RESOURCE_PATH=~/ardupilot_gazebo/worlds:${GAZEBO_RESOURCE_PATH}
export GAZEBO_PLUGIN_PATH=~/ardupilot_gazebo/build:${GAZEBO_PLUGIN_PATH}
Install is complete
gnome-terminal -- bash -c "roscore"
gnome-terminal -- bash -c "sleep 5;rosrun gazebo_ros gazebo --verbose iris_ardupilot.world"
sim_vehicle.py -v ArduCoptor -f gazebo-iris -m --mav10 --console -IO
sim_vehicle.py -v ArduCoptor --console --map
Task - Use the qgroudcontrol groundstation to connect to the simulator and upload 4 waypoints to the flight navigation system and launch the mission. Record a video or take multiple screenshots and upload it to the given portal.
Reffer bellow for links, and troubleshooting guide :