Please check the documentation for the latest installation procedure and tutorials on how to use the framework.
These steps have been tested on Ubuntu 20.04, making ROS Noetic work on newer versions of ubuntu might be possible but is a little bit trickier
After installing Ubuntu 20.04:
- Install ROS Noetic (Official documentation)
- Install Eigen: Download eigen version 3.4.0 here, open the folder in a terminal
sudo cp -r -t /usr/local/include/ Eigen/ unsupported/
- Install Boost:
sudo apt install libboost-dev
- Install python dependencies:
sudo apt install python3-pip
pip3 install rospkg dataclasses scipy numpy pyqtgraph pyserial
- If you have never installed another ROS package before:
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
echo "source ~/catkin_ws/devel/setup.sh" >> ~/.bashrc
source ~/.bashrc
- Install Simulator package and GUI plugin: Clone or download repository in your catkin workspace (usually ~/catkin_ws/src if you followed the ROS tutorials), then compile it:
cd ~/catkin_ws/src
git clone https://github.com/EPFLRocketTeam/real_time_simulator.git
git clone -b noetic-devel https://github.com/OTL/rqt_ez_publisher.git
cd ~/catkin_ws
catkin_make
source ~/.bashrc
rqt --force-discover # Then close windows
Rviz configuration: The configuration of the rviz plugin in rqt will not load properly because it only stores the absolute path in the .perspective file. This is fixed by writing your absolute path in GUI/rocket_GUI.perspective, then stop tracking the file to keep your personal change to the GUI local
cd ~/catkin_ws/src/real_time_simulator
sed -i 's/username/'"$USER"'/g' GUI/rocket_GUI.perspective
git update-index --assume-unchanged GUI/rocket_GUI.perspective
Once everything is installed, you can use the test_simu.sh script to simulate a basic flight and check that everything is properly working
roscd real_time_simulator/
mkdir log
./bash_scripts/test_simu.sh # Then ctrl+c inside terminal to stop simulation
Albéric de Lajarte ([email protected])