Created
May 26, 2021 11:20
-
-
Save RBEGamer/5d1fb23abd0ce867eddf939a54a0db07 to your computer and use it in GitHub Desktop.
ros2 install ubuntu 20.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # AUSZU AUS https://docs.ros.org/en/crystal/Installation/Linux-Development-Setup.html#add-the-ros-2-apt-repository | |
| sudo apt update && sudo apt install -y \ | |
| build-essential \ | |
| cmake \ | |
| git \ | |
| python3-colcon-common-extensions \ | |
| python3-lark-parser \ | |
| 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 | |
| # ZUSÄTZLICH !!! | |
| # https://github.com/ros2/ros2/issues/320 | |
| sudo apt install python3-vcstool | |
| sudo apt install python3-argcomplete | |
| mkdir -p ~/ros2_crystal/src | |
| cd ~/ros2_crystal | |
| wget https://raw.githubusercontent.com/ros2/ros2/crystal/ros2.repos | |
| vcs import src < ros2.repos | |
| sudo rosdep init | |
| rosdep update | |
| # [Ubuntu 18.04] | |
| rosdep install --from-paths src --ignore-src --rosdistro crystal -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers" | |
| cd ~/ros2_crystal/ | |
| # On Ubuntu Linux Bionic Beaver 18.04 | |
| colcon build --symlink-install | |
| # SOURCE => ROS2 COMMAND IS PRESENT | |
| . ~/ros2_crystal/install/setup.bash | |
| # RUN EXAMPLE | |
| . ~/ros2_crystal/install/local_setup.bash | |
| ros2 run demo_nodes_cpp talker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment