3. Linux installation from sources

For simplicity, the eProsima Shapes Demo installation manual follows the Colcon installation, since eProsima Fast DDS and Fast CDR dependencies are downloaded and installed at the same time that eProsima Shapes Demo is built. However, the user must assure that Qt5 is installed.

3.1. Colcon installation

To install eProsima Shapes Demo using colcon, please follow the steps below:

  1. Install the eProsima Fast DDS dependencies and verify that the system meets the installation requirements. The complete list of requirements and dependencies can be found in the Fast DDS Linux Installation Manual. Specifically, follow the steps outlined in sections Requirements and Dependencies.

  2. Install the ROS 2 development tools (Colcon and Vcstool) by executing the following command:

    pip install -U colcon-common-extensions vcstool
    

    Note

    If this fails due to an Environment Error, add the --user flag to the pip installation command.

  3. Create a ShapesDemo directory and download the repos file that will be used to install eProsima Shapes Demo and its dependencies:

    mkdir -p ShapesDemo/src && cd ShapesDemo
    wget https://raw.githubusercontent.com/eProsima/ShapesDemo/master/ShapesDemo.repos
    vcs import src < shapes-demo.repos
    
  1. Build the packages:

    colcon build
    
  2. Link the application executable to make it accessible from the current directory:

    source install/setup.bash
    
  3. Run eProsima Shapes Demo:

    ShapesDemo