Hello! Welcome to our Lab. On this page we will guide you through the installation process of our Lab.
Here are the steps:
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
sudo apt update
sudo apt upgrade
Create a folder called 'dev' in your home directory
cd ~/dev
git clone https://git.rwth-aachen.de/CPM/Project/Lab/software.git
Run our script to install all necessary components. You find our script in the "software" folder you have just cloned. You find it in the folder "install-script-for-ubuntu-setup"
todo | full installation | simulation setup only |
---|---|---|
run | bash setup_cpm_build_environment.sh | bash setup_cpm_build_environment.sh --simulation |
What will it install? | Unbuntu packages | Unbuntu packages |
Joystick/ Gamepad | Joystick/ Gamepad | |
RTI DDS Connext | RTI DDS Connext | |
RTI ARM | ||
OpenCV 4.0 for the Indoor Positioning System | ||
Basler Pylon 5 for the Indoor Positioning System and lab camera |
Reboot your computer or
open a new terminal and type
cd ~/dev; source /etc/profile.d/rti_connext_dds.sh
Run the build script. It will also clone the cpm library so keep your git username and password on hand.
full setup | only simulation setup |
---|---|
./build_all.bash | ./build_all.bash --simulation |
. ./environment_variables.bashDo not set LD_LIBRARY_PATH for the whole system, only for your current shell.
You need to replace the template parameter of the QOS_LOCAL_COMMUNICATION.xml.template
with the machine's IP address and store the resulting file as QOS_LOCAL_COMMUNICATION.xml
. This file can then be loaded by both the Middleware and your script.
Bash example:
# Copy local communication QoS, use correct IP
my_ip=$(ip route get 8.8.8.8 | awk -F"src " 'NR==1{split($2,a," ");print a[1]}')
sed -e "s/TEMPLATE_IP/${my_ip}/g" \
<../QOS_LOCAL_COMMUNICATION.xml.template \
>./QOS_LOCAL_COMMUNICATION.xml