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.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:ros2_in_debian_unstable [2019/11/05 20:21] – admin | tutorials:ros2_in_debian_unstable [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 12: | Line 12: | ||
curl -s https:// | curl -s https:// | ||
sudo sh -c 'echo "deb [arch=amd64, | sudo sh -c 'echo "deb [arch=amd64, | ||
+ | |||
+ | * Install development tools and ROS tools: | ||
+ | |||
+ | sudo apt update && sudo apt install -y \ | ||
+ | build-essential \ | ||
+ | cmake \ | ||
+ | git \ | ||
+ | python3-colcon-common-extensions \ | ||
+ | python3-pip \ | ||
+ | python-rosdep \ | ||
+ | python3-vcstool \ | ||
+ | wget | ||
+ | # install some pip packages needed for testing | ||
+ | python3 -m pip install -U \ | ||
+ | argcomplete \ | ||
+ | flake8 \ | ||
+ | flake8-blind-except \ | ||
+ | flake8-builtins \ | ||
+ | flake8-class-newline \ | ||
+ | flake8-comprehensions \ | ||
+ | flake8-deprecated \ | ||
+ | flake8-docstrings \ | ||
+ | flake8-import-order \ | ||
+ | flake8-quotes \ | ||
+ | pytest-repeat \ | ||
+ | pytest-rerunfailures \ | ||
+ | pytest \ | ||
+ | pytest-cov \ | ||
+ | pytest-runner \ | ||
+ | setuptools | ||
+ | # install Fast-RTPS dependencies | ||
+ | sudo apt install --no-install-recommends -y \ | ||
+ | libasio-dev \ | ||
+ | libtinyxml2-dev | ||
+ | # install CycloneDDS dependencies | ||
+ | sudo apt install --no-install-recommends -y \ | ||
+ | libcunit1-dev | ||
+ | |||
+ | * Create workspace and clone repos: | ||
+ | |||
+ | mkdir -p ~/ | ||
+ | cd ~/ | ||
+ | wget https:// | ||
+ | vcs import src < ros2.repos | ||
+ | |||
+ | * Install dependencies using rosdep | ||
+ | |||
+ | sudo rosdep init | ||
+ | rosdep update | ||
+ | rosdep install --os=debian: | ||
+ | |||
+ | * 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 / | ||
+ | sudo update-alternatives --install / | ||
+ | |||
+ | * Build the code in the workspace | ||
+ | |||
+ | cd ~/ | ||
+ | colcon build --symlink-install | ||
+ | |||
+ | * Try some examples | ||
+ | * In one terminal: | ||
+ | |||
+ | . ~/ | ||
+ | ros2 run demo_nodes_cpp talker | ||
+ | |||
+ | * In another terminal: | ||
+ | |||
+ | . ~/ | ||
+ | ros2 run demo_nodes_py listener | ||
tutorials/ros2_in_debian_unstable.1572985270.txt.gz · Last modified: 2022/09/20 00:08 (external edit)