You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 40 Next »

This page will guide you through the installation process of the Lab:

  1. Install  Ubuntu 18.04.3 LTS.

    https://releases.ubuntu.com/18.04/                                                                     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

  2. Create a folder called dev in your home directory

  3. Clone our cpm software repository into your dev-folder by typing:
    cd ~/dev
    git clone https://github.com/embedded-software-laboratory/cpm_lab.git
    you have to enter your git username and password

  4. 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)

  5.  Run our script to install all necessary components.  In the software- folder you have just cloned you find 'install.sh'.

    todofull installationsimulation setup only
    run
    cd software/
    sudo bash install.sh
    cd software/
    sudo bash install.sh --simulation
    What will it install?Unbuntu packagesUnbuntu packages

    Joystick/ GamepadJoystick/ Gamepad

    RTI DDS ConnextRTI DDS Connext

    RTI ARM

    OpenCV 4.0 for the Indoor Positioning System

    Basler Pylon 5 for the Indoor Positioning System and lab camera



    Change DDS Domain

    If you want to change the DDS Domain later, go to /etc/profile

    Currently at the CPM Lab the IDs are the following

    IDPurpose
    21Main computer
    61-66Lab computers
    101-120Vehicles
    201-220NUCs

    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
  6. Reboot your PC to avoid running source /etc/profile.d/rti_connext_dds.sh in every terminal you open.

  7. Run the build script.

    full setuponly simulation setup
    ./build_all.bash
    ./build_all.bash --simulation

Troubleshooting

  • If you have problems during the building process, try starting over again with

    cd ~/dev/software/
    git pull
    sudo git clean -xdf
    ./build_all.bash
  • If you ever run build_all.bash  as root , you might run into a lot of permission denied  errors. You need to delete all files and folders that were created and rerun as your usual user.
  • If you recieve an error like "dds/someheader.h" not found, run the command "rtiddsgen", which should build the neccesarry cpp-files
  • If you recieve an error regarding timing issues of unittests, run the ./build_all.bash script again. This error occurs often in VM.
  • No labels