IMPORTANT: This package requires ROS noetic to be installed. For ease of installation, using Ubuntu 20.04 is recommended.

Dependencies

Install Eigen

Download eigen version 3.4.0, open the folder in a terminal, then copy the source files in /usr/local/include:

sudo cp -r -t /usr/local/include/ Eigen/ unsupported/

Install Boost

If not already installed, run:

sudo apt install libboost-dev

Install python dependencies

Install pip3 package manager:

sudo apt install python3-pip

Then use it install the following packages:

pip3 install rospkg dataclasses scipy numpy pyqtgraph pyserial

Setting up your workspace

If you have never installed another ROS package before, you need to create a catkin workspace and setup your shell:

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
echo "source ~/catkin_ws/devel/setup.sh" >> ~/.bashrc
source ~/.bashrc

Note: If you use another shell (like zsh for example), modify the last two lines accordingly (modifying .zshrc for example)

Install ROS packages

Clone or download repositories in your catkin workspace (usually ~/catkin_ws/src if you followed the ROS tutorials), then compile them:

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 # Modify depending on your shell
rqt --force-discover # Then close the windows

Configure your local GUI file with your local path

cd ~/catkin_ws/src/real_time_simulator
sed -i 's/username/'"$USER"'/g' GUI/rocket_GUI.perspective

Then stop tracking this file to keep your personal change to the GUI local:

git update-index --assume-unchanged GUI/rocket_GUI.perspective

List of pages in this category:


CategoryCategory

Wiki: real_time_simulator/Installation (last edited 2022-02-16 18:41:40 by Albéric de Lajarte)