Hood ROS2 Dashing Install
From wikidb
Contents
Reference
Disk Space
$ df Filesystem 1K-blocks Used Available Use% Mounted on udev 8143920 0 8143920 0% /dev tmpfs 1635264 1868 1633396 1% /run /dev/sda1 114854020 13885176 95091496 13% /
Installation
Setup Local
$ sudo locale-gen en_US en_US.UTF-8 [sudo] password for eepp: Generating locales (this might take a while)... en_US.ISO-8859-1... done en_US.UTF-8... done Generation complete.
$ sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
$ export LANG=en_US.UTF-8
Setup Sources
$ sudo apt update Hit:1 http://packages.osrfoundation.org/gazebo/ubuntu bionic InRelease Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:3 http://packages.ros.org/ros2/ubuntu bionic InRelease Hit:4 http://us.archive.ubuntu.com/ubuntu bionic InRelease Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease Reading package lists... Done Building dependency tree Reading state information... Done 238 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt install curl gnupg2 lsb-release Reading package lists... Done Building dependency tree Reading state information... Done lsb-release is already the newest version (9.20170808ubuntu1). curl is already the newest version (7.58.0-2ubuntu3.7). gnupg2 is already the newest version (2.2.4-1ubuntu1.2). 0 upgraded, 0 newly installed, 0 to remove and 238 not upgraded.
$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - OK
$ sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list'
Install ROS2 Packages
$ sudo apt update Hit:1 http://packages.osrfoundation.org/gazebo/ubuntu bionic InRelease Hit:2 http://packages.ros.org/ros2/ubuntu bionic InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [560 kB] Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [684 kB] Fetched 1,496 kB in 1s (1,279 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 238 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt install ros-dashing-desktop Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: ros-dashing-action-msgs ros-dashing-action-tutorials ros-dashing-actionlib-msgs ros-dashing-ament-cmake ros-dashing-ament-cmake-auto ros-dashing-ament-cmake-copyright ros-dashing-ament-cmake-core ros-dashing-ament-cmake-cppcheck ros-dashing-ament-cmake-cpplint ros-dashing-ament-cmake-export-definitions ... ... Setting up ros-dashing-ros2run (0.7.4-1bionic.20190612.222531) ... Setting up ros-dashing-lifecycle (0.7.8-1bionic.20190612.222923) ... Setting up ros-dashing-ros2component (0.7.4-1bionic.20190612.222733) ... Setting up ros-dashing-rviz2 (6.1.2-1bionic.20190613.073902) ... Setting up ros-dashing-ros2launch (0.8.4-1bionic.20190612.222444) ... Setting up ros-dashing-dummy-robot-bringup (0.7.8-1bionic.20190613.063655) ... Setting up ros-dashing-ros-core (0.7.2-1bionic.20190613.190212) ... Setting up ros-dashing-ros-base (0.7.2-1bionic.20190613.190355) ... Setting up ros-dashing-desktop (0.7.2-1bionic.20190613.190425) ... Processing triggers for libc-bin (2.27-3ubuntu1) ...
$ sudo apt install ros-dashing-ros-base Reading package lists... Done Building dependency tree Reading state information... Done ros-dashing-ros-base is already the newest version (0.7.2-1bionic.20190613.190355). ros-dashing-ros-base set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 238 not upgraded.
Install argcomplete
$ sudo apt install python3-argcomplete Reading package lists... Done Building dependency tree Reading state information... Done python3-argcomplete is already the newest version (1.8.1-1ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 238 not upgraded.
Sourcing the Setup Script
$ source /opt/ros/dashing/setup.bash ROS_DISTRO was set to 'crystal' before. Please make sure that the environment does not mix paths from different distributions.
$ echo "source /opt/ros/dashing/setup.bash" >> ~/.bashrc
Disk Space
$ df Filesystem 1K-blocks Used Available Use% Mounted on udev 8143920 0 8143920 0% /dev tmpfs 1635264 1868 1633396 1% /run /dev/sda1 114854020 14184308 94792364 14% /
Install additional RMW implementations
TBD
Install additional packages using ROS 1 packages
TBD