Hood NUC ROS2 Dashing Binary 202002
From wikidb
February 15, 2020
Contents
References
- ROS 2 Installation Options: links to ROS 2 Dashing Diademata
- Installing ROS 2 Dashing Diademata: links to Debian packages
- Installing ROS 2 via Debian Packages
- ROS 2 Foxy Fitzroy: Setting a new standard for production robot development
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
$ 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.8). gnupg2 is already the newest version (2.2.4-1ubuntu1.2). The following packages were automatically installed and are no longer required: libllvm7 libllvm8 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 40 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 ROS 2 Packages
$ sudo apt update
$ sudo apt install ros-dashing-desktop
$ sudo apt install ros-dashing-ros-base
Publish and Subscribe Test
TERMINAL 1
$ source /opt/ros/dashing/setup.bash
$ ros2 run demo_nodes_cpp talker [INFO] [talker]: Publishing: 'Hello World: 1' [INFO] [talker]: Publishing: 'Hello World: 2' [INFO] [talker]: Publishing: 'Hello World: 3' [INFO] [talker]: Publishing: 'Hello World: 4' [INFO] [talker]: Publishing: 'Hello World: 5' [INFO] [talker]: Publishing: 'Hello World: 6' [INFO] [talker]: Publishing: 'Hello World: 7' [INFO] [talker]: Publishing: 'Hello World: 8' [INFO] [talker]: Publishing: 'Hello World: 9' [INFO] [talker]: Publishing: 'Hello World: 10' [INFO] [talker]: Publishing: 'Hello World: 11'
TERMINAL 2
$ source /opt/ros/dashing/setup.bash
$ ros2 run demo_nodes_py listener [INFO] [listener]: I heard: [Hello World: 11] [INFO] [listener]: I heard: [Hello World: 12] [INFO] [listener]: I heard: [Hello World: 13] [INFO] [listener]: I heard: [Hello World: 14] [INFO] [listener]: I heard: [Hello World: 15] [INFO] [listener]: I heard: [Hello World: 16] [INFO] [listener]: I heard: [Hello World: 17] ^
PASSED: Signs of life test
Install additional RMW implementations
STOP Don't do this. I broke the system doing this. I think I ended up with a miss-matched libraries. This must only be related to a Bouncy install. I don't think this belongs in a Dashing install.
Install additional packages using ROS 1 packages
STOP I've gotten into trouble here before. I hope not to need ROS 1 packages through the Bridge. Maybe running everything on the NUC will help avoid this