Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 34, accidentally published

...

  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 'installsetup_cpm_build_environment.sh'. You PC will reboot in the end to finish the environment variables setup.

    todofull installationsimulation setup only
    run
    cd software/
    sudo bash installsetup_cpm_build_environment.sh
    cd software/
    sudo bash installsetup_cpm_build_environment.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



    Info
    titleChange 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 computermain PC
    6160-66Lab computers
    101-120Vehicles
    201-220NUCs
    PC



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


  6. Run the build script.

    Info
    titleClones also cpm library
    It will also clone the cpm library so keep your git username and password on hand.


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


Info
titlePermission denied

In case of a permission denied error, check that the scripts in ./bash have the right permissions set (chmod +x)


bash

resolve your error (the first try should be git pull for both folders), then

cd ~/dev/cpm_base/
sudo git clean -xdf


cd ~/dev/software/
git pull

sudo git clean -xdf
bash build_all.bashIf 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.
Info
titleTroubleshootingProblems during build

If you have problems during the building process,

try starting over again with
Code Block
language