The COSMUS Design is a Software-in-the-loop platform, aimed to modeling, developing and testbed algorithms of navigation for Unmanned Aerial Vehicles (UAVs) with fixed-wing. The plataform has support for swarming applications and integration with MATLAB/Simulink.
This simulation platform allows to understand the behavior of the flight control system by comparing and evaluating different indoor and outdoor scenarios, with a details level quite close to reality.
Here the reference to the core paper are reported.
@ARTICLE{COSMUSDesign, author={Souza, Fabrício C. and Santos, Sérgio R. Barros Dos and Givigi, Sidney N.},
title={Multi-Fixed-Wing-UAV Software-in-the-Loop Simulation Platform for System Design},
journal={IEEE Systems Journal},
year={2022},
volume={},
number={},
pages={},
doi={},
url={github.com/FCostaS/COSMUSDesign}
}To use the code developed and stored in this repository some preliminary actions are needed. They are listed below. The ROS Noetic is a version of ROS for Ubuntu Focal Fossa.
- Install and initialize ROS Noetic desktop full
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
$ sudo apt install curl # if you haven't already installed curl
$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
$ sudo apt-get update
$ sudo apt install ros-noetic-desktop-full
$ echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
$ sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential python3-catkin-tools
$ sudo rosdep init
$ rosdep update
- If you don't have ROS workspace yet you can do so by
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ sudo apt-get install
$ catkin_init_workspace
$ cd ~/catkin_ws/
$ catkin init
- Add sourcing to your .bashrc file
$ git clone -b main https://github.com/FCostaS/COSMUSDesign.git
$ catkin build
$ echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ echo "export GAZEBO_MODEL_PATH=~/.gazebo/models" >> ~/.bashrc
$ source ~/.bashrc
Launching the simulation is quite simple: it is enough to run in a terminal the command
$ roslaunch cosmus_gazebo cessna172_spawn.launch
Note: The first run of gazebo might take considerably long, as it will download some models from an online database. To avoid any problems when starting the simulation for the first time, you may run the gazebo command in the terminal line.
See COSMUS Design wiki for more instructions and examples.