Page History
Hello! Welcome to our Lab. On this page we This page will guide you through the installation process of our the Lab.First step:
- Install Ubuntu 18.04.3 LTS.https://ubuntu.com/download or
https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu or
https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows
- Install updates running
sudo apt update
sudo apt upgradeCreate the folder '~/dev' and open it in a terminal:
Code Block language bash cd ~ mkdir dev cd dev
Clone the CPM Lab software repository:
Code Block language bash git clone https://github.com/embedded-software-laboratory/cpm_lab software
- Prepare to run our installation script by getting a license.dat-file for the RTI DDS Connext Service (ask your supervisor if you are a student or get into contact with RTI). This is not required if you are running the eProsima version (which is not yet present in the master branch).
Run our script to install all necessary components. You find our script here:LINK ZU GITHUB In the software folder you have just cloned you find install.sh.
cd ~/dev; source /todo full installation simulation setup only run bash setup_cpm_build_environment.sh bash setup_cpm_build_environment.shCode Block language bash cd software/ sudo bash install.sh
Code Block language bash cd software/ sudo bash install.sh --simulation
What will it install? Unbuntu packages Unbuntu packages Joystick/ Gamepad Joystick/ Gamepad RTI DDS Connext or eProsima RTI DDS Connext or eProsima RTI ARM or eProsima ARM OpenCV 4.0 for the Indoor Positioning System Basler Pylon 5 for the Indoor Positioning System Reboot your computer or open a new terminal and type
and lab camera
\ clone our cpm library repository into your /dev folder by typing:cd ~/devInfo title Change DDS Domain If you want to change the DDS Domain later, change the corresponding variable
DDS_DOMAIN
in /etc/profile.d/rti_connext_dds.sh
git clone https://git.rwth-aachen.de/CPM/Project/Lab/cpm_base.git you have to enter your git username and password
clone our cpm software repository into your /dev folder by typing:
cd ~/dev
git clone https://git.rwth-aachen.de/CPM/Project/Lab/software.gityou have to enter your git username and password
Run the build script
cd ~/dev/software/
then.
The following domain IDs are used in the CPM Lab:
Domain ID Purpose 21 Lab (main computer, NUCs, vehicles) 61-66 Student computers Info title Change RTI license file If you want to update your license file, change the file at: /opt/rti_connext_dds-6.0.0/rti_license.dat Reboot your PC.
Optional:
Setup MATLAB. As a student from RWTH, you can do this with a MathWorks account following these instructions.
For RTI DDS: Download the DDS Support Package for MATLAB and install the toolbox. The native DDS addon that ships with MATLAB versions from 2021a only supports Simulink. If you are going to code in MATLAB, install the corresponding package from the link.To use MATLAB with eProsima, look here.
Note Make sure to create a symbolic link to the MATLAB binary during or after the setup!
Run the build script.
full setup only simulation setup Code Block language bash ./build_all.bash
Code Block language bash ./build_all.bash --simulation
Info | |||||
---|---|---|---|---|---|
| |||||
make sure that the software is up to date and built correctly with
|