August 13

Settin up Clean installation of dsr

  1. First step is to install the Robocomp.
  2. Installing the following dependencies
    • cppItertools
    • gcc-9
    • Fast-CDR
    • foonathan_memory_vendor
    • Fast-DDS
    • pyRep
 sudo git clone https://github.com/ryanhaining/cppitertools /usr/local/include/cppitertools
 sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
 sudo apt update
 sudo apt install -y gcc-9
 mkdir ~/software
 cd ~/software
 git clone https://github.com/eProsima/Fast-CDR.git
 mkdir Fast-CDR/build
 cd Fast-CDR/build
 export MAKEFLAGS=-j$(($(grep -c ^processor /proc/cpuinfo) - 0))
 cmake ..
 cmake --build .
 sudo make install
 cd ~/software
 git clone https://github.com/eProsima/foonathan_memory_vendor.git
 cd foonathan_memory_vendor
 mkdir build
 cd build
 cmake ..
 cmake --build .
 sudo make install
 cd ~/software
 git clone https://github.com/eProsima/Fast-DDS.git
 mkdir Fast-DDS/build
 cd Fast-DDS/build
 cmake ..
 cmake --build .
 sudo make install
 sudo apt install -y libasio-dev libtinyxml2-dev libqglviewer-dev-qt5
 sudo ldconfig
 git clone https://github.com/stepjam/PyRep.git
 cd PyRep
 echo "export COPPELIASIM_ROOT=<CoppeliaSim path>" >> ~/.bashrc
 echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COPPELIASIM_ROOT" >> ~/.bashrc
 echo "export QT_QPA_PLATFORM_PLUGIN_PATH=$COPPELIASIM_ROOT" >> ~/.bashrc
 source ~/.bashrc
 pip3 install -r requirements.txt
 python3 setup.py install --user

Note: Make sure to replace <CoppeliaSim path> with the Coppelia Sim path in your machine

While installing PyRep if you get an error:

Add the CoppeliaSim path to /etc/ld.so.config/ and then sudo ldconfig

make sure correct path of coppeliaSim is set in the LD_LIBRARY_PATH

make sure you have ls /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 file in your machine. After that start the ./run.sh without sudo

  1. clonning the https://github.com/robocomp/dsr-graph.git
  2. go to the viriatoPyrep directory and run the ./run.sh
    • from pyrep.robots.mobiles.viriato import Viriato ModuleNotFoundError: No module named ‘pyrep.robots.mobiles.viriato’

Then make sure you copied the viriato.py from dsr-grpah/pyrep to /home/xxxyour-userxxx/.local/lib/python3.6/site-packages/pyrep/robots/mobiles/viriato.py

Make sure you have all these dependencies required for Viriato_Pyrep:\


Task for tomorrow: