User Tools

Site Tools


Writing /var/lib/dokuwiki/data/meta/tutorials/ros2_in_debian_unstable.meta failed
tutorials:ros2_in_debian_unstable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:ros2_in_debian_unstable [2019/11/05 20:25] admintutorials:ros2_in_debian_unstable [2022/09/20 00:08] (current) – external edit 127.0.0.1
Line 24: Line 24:
   python3-vcstool \   python3-vcstool \
   wget   wget
-# install some pip packages needed for testing +  # install some pip packages needed for testing 
-python3 -m pip install -U \+  python3 -m pip install -U \
   argcomplete \   argcomplete \
   flake8 \   flake8 \
Line 42: Line 42:
   pytest-runner \   pytest-runner \
   setuptools   setuptools
-# install Fast-RTPS dependencies +  # install Fast-RTPS dependencies 
-sudo apt install --no-install-recommends -y \+  sudo apt install --no-install-recommends -y \
   libasio-dev \   libasio-dev \
   libtinyxml2-dev   libtinyxml2-dev
-# install CycloneDDS dependencies +  # install CycloneDDS dependencies 
-sudo apt install --no-install-recommends -y \+  sudo apt install --no-install-recommends -y \
   libcunit1-dev   libcunit1-dev
  
Line 61: Line 61:
   sudo rosdep init   sudo rosdep init
   rosdep update   rosdep update
-  rosdep install --from-paths src --ignore-src --rosdistro dashing -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers"+  rosdep install --os=debian:buster --from-paths src --ignore-src --rosdistro dashing -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers" 
 + 
 +  * Configure the system to use gcc and g++ version 8 instead of version 9: 
 + 
 +  sudo apt-get install gcc-8 g++-8 
 +  sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 
 +  sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
  
   * Build the code in the workspace   * Build the code in the workspace
Line 67: Line 73:
   cd ~/ros2_dashing/   cd ~/ros2_dashing/
   colcon build --symlink-install   colcon build --symlink-install
 +
 +  * Try some examples
 +  * In one terminal:
 +
 +  . ~/ros2_dashing/install/local_setup.bash
 +  ros2 run demo_nodes_cpp talker
 +
 +  * In another terminal:
 +
 +  . ~/ros2_dashing/install/local_setup.bash
 +  ros2 run demo_nodes_py listener
  
  
tutorials/ros2_in_debian_unstable.1572985502.txt.gz · Last modified: 2022/09/20 00:08 (external edit)