Difference between revisions of "Hood NUC ROS 2 Foxy Install 20210311 V2"
From wikidb
(Created page with "= References = * [https://emanual.robotis.com/docs/en/platform/turtlebot3/quick-start/ Robotis Turtlebot3 e_Manual - Quick Start Guide - 3.1 PC Setup] Foxy version selected a...") |
(→3.1.4 Install TurtleBot3 Packages - Source Install) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 27: | Line 27: | ||
= 3.1.3 Install Dependent ROS 2 Packages = | = 3.1.3 Install Dependent ROS 2 Packages = | ||
− | == Install Gazebo11 == | + | == 2 Install Colcon == |
+ | |||
+ | $ sudo apt install python3-colcon-common-extensions | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | ... | ||
+ | |||
+ | |||
+ | == 3 Install Gazebo11 == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
$ sudo apt install ros-foxy-gazebo-ros-pkgs | $ sudo apt install ros-foxy-gazebo-ros-pkgs | ||
Reading package lists... Done | Reading package lists... Done | ||
− | Building dependency tree | + | Building dependency tree |
− | + | ||
... | ... | ||
− | == Install Cartographer == | + | == 4 Install Cartographer == |
$ sudo apt install ros-foxy-cartographer | $ sudo apt install ros-foxy-cartographer | ||
Line 53: | Line 54: | ||
... | ... | ||
− | == Install Navigation2 == | + | == 5 Install Navigation2 == |
$ sudo apt install ros-foxy-navigation2 | $ sudo apt install ros-foxy-navigation2 | ||
Line 65: | Line 66: | ||
... | ... | ||
− | == Install vcstool == | + | == 6 Install vcstool == |
$ sudo apt install python3-vcstool | $ sudo apt install python3-vcstool | ||
Line 71: | Line 72: | ||
Building dependency tree | Building dependency tree | ||
... | ... | ||
+ | |||
+ | == 7 Install Laser Distance Sensor Driver == | ||
+ | |||
+ | This did not appear in the Burger install for the Remote PC (Sisters) because the Laser Distance driver is handled by the Raspberry Pi (Single Board Computer (SBC)). We must do it here because it will be handled on the NUC (Hood). | ||
+ | |||
+ | $ sudo apt install ros-foxy-hls-lfcd-lds-driver | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | ... | ||
+ | |||
+ | = 3.1.4 Install TurtleBot3 Packages - Binary Install = | ||
+ | |||
+ | We should be able to replace the following source install with this binary install. This install was done using binaries. | ||
+ | |||
+ | $ sudo apt install ros-foxy-dynamixel-sdk | ||
+ | |||
+ | $ sudo apt install ros-foxy-turtlebot3-msgs | ||
+ | |||
+ | $ sudo apt install ros-foxy-turtlebot3 | ||
= 3.1.4 Install TurtleBot3 Packages - Source Install = | = 3.1.4 Install TurtleBot3 Packages - Source Install = | ||
Line 78: | Line 98: | ||
Building dependency tree | Building dependency tree | ||
... | ... | ||
+ | |||
+ | $ sudo apt remove ros-foxy-turtlebot3-msgs | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | ... | ||
+ | |||
+ | $ sudo apt remove ros-foxy-turtlebot3 | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | ... | ||
$ mkdir -p ~/turtlebot3_ws/src | $ mkdir -p ~/turtlebot3_ws/src | ||
Line 89: | Line 119: | ||
remote: Compressing objects: 100% (13/13), done. | remote: Compressing objects: 100% (13/13), done. | ||
remote: Total 261 (delta 3), reused 12 (delta 2), pack-reused 242 | remote: Total 261 (delta 3), reused 12 (delta 2), pack-reused 242 | ||
− | Receiving objects: 100% (261/261), 74.79 KiB | | + | Receiving objects: 100% (261/261), 74.79 KiB | 2.99 MiB/s, done. |
Resolving deltas: 100% (104/104), done. | Resolving deltas: 100% (104/104), done. | ||
− | + | $ git clone -b foxy-devel https://github.com/ROBOTIS-GIT/turtlebot3.git | |
Cloning into 'turtlebot3'... | Cloning into 'turtlebot3'... | ||
− | remote: Enumerating objects: | + | remote: Enumerating objects: 23, done. |
− | remote: Total | + | remote: Counting objects: 100% (23/23), done. |
− | Receiving objects: 100% ( | + | remote: Compressing objects: 100% (15/15), done. |
− | Resolving deltas: 100% ( | + | remote: Total 5464 (delta 6), reused 15 (delta 2), pack-reused 5441 |
+ | Receiving objects: 100% (5464/5464), 119.74 MiB | 8.50 MiB/s, done. | ||
+ | Resolving deltas: 100% (3419/3419), done. | ||
$ pwd | $ pwd | ||
Line 104: | Line 136: | ||
$ cd .. | $ cd .. | ||
− | + | $ colcon build --symlink-install | |
Starting >>> turtlebot3_msgs | Starting >>> turtlebot3_msgs | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Starting >>> turtlebot3_description | Starting >>> turtlebot3_description | ||
Starting >>> turtlebot3_cartographer | Starting >>> turtlebot3_cartographer | ||
Starting >>> turtlebot3_navigation2 | Starting >>> turtlebot3_navigation2 | ||
− | Finished <<< | + | Finished <<< turtlebot3_description [0.52s] |
Starting >>> turtlebot3_teleop | Starting >>> turtlebot3_teleop | ||
− | Finished <<< | + | Finished <<< turtlebot3_cartographer [0.55s] |
− | Finished <<< | + | Finished <<< turtlebot3_navigation2 [0.97s] |
− | + | Finished <<< turtlebot3_msgs [1.57s] | |
− | Finished <<< turtlebot3_msgs [ | + | |
Starting >>> turtlebot3_node | Starting >>> turtlebot3_node | ||
Starting >>> turtlebot3_example | Starting >>> turtlebot3_example | ||
− | Finished <<< turtlebot3_example [ | + | Finished <<< turtlebot3_teleop [1.57s] |
− | Finished <<< turtlebot3_node [ | + | Finished <<< turtlebot3_example [1.11s] |
+ | [Processing: turtlebot3_node] | ||
+ | Finished <<< turtlebot3_node [34.3s] | ||
Starting >>> turtlebot3_bringup | Starting >>> turtlebot3_bringup | ||
− | Finished <<< turtlebot3_bringup [1. | + | Finished <<< turtlebot3_bringup [1.35s] |
Starting >>> turtlebot3 | Starting >>> turtlebot3 | ||
− | Finished <<< turtlebot3 [1. | + | Finished <<< turtlebot3 [1.32s] |
− | Summary: 9 packages finished [ | + | Summary: 9 packages finished [38.8s] |
= 3.1.5 Environment Configuration = | = 3.1.5 Environment Configuration = | ||
Line 150: | Line 173: | ||
= Notes and Logs = | = Notes and Logs = | ||
− | |||
[[Foxy Install Hood 20210311 Notes and Logs]] | [[Foxy Install Hood 20210311 Notes and Logs]] |
Latest revision as of 15:19, 28 June 2021
Contents
References
- Robotis Turtlebot3 e_Manual - Quick Start Guide - 3.1 PC Setup Foxy version selected at top.
3.1.1 Download and Install Ubuntu on PC
Ubuntu 20.04 has already been installed. See one of the following for either the PC laptop (Sisters) or Intel NUC (Hood).
3.1.2 Install ROS 2
$ sudo apt update ... $ sudo apt upgrade ... $ wget https://raw.githubusercontent.com/ROBOTIS-GIT/robotis_tools/master/install_ros2_foxy.sh $ chmod 755 ./install_ros2_foxy.sh $ bash ./install_ros2_foxy.sh ...
3.1.3 Install Dependent ROS 2 Packages
2 Install Colcon
$ sudo apt install python3-colcon-common-extensions Reading package lists... Done Building dependency tree ...
3 Install Gazebo11
$ sudo apt install ros-foxy-gazebo-ros-pkgs Reading package lists... Done Building dependency tree ...
4 Install Cartographer
$ sudo apt install ros-foxy-cartographer Reading package lists... Done Building dependency tree ... $ sudo apt install ros-foxy-cartographer-ros Reading package lists... Done Building dependency tree ...
$ sudo apt install ros-foxy-navigation2 Reading package lists... Done Building dependency tree ... $ sudo apt install ros-foxy-nav2-bringup Reading package lists... Done Building dependency tree ...
6 Install vcstool
$ sudo apt install python3-vcstool Reading package lists... Done Building dependency tree ...
7 Install Laser Distance Sensor Driver
This did not appear in the Burger install for the Remote PC (Sisters) because the Laser Distance driver is handled by the Raspberry Pi (Single Board Computer (SBC)). We must do it here because it will be handled on the NUC (Hood).
$ sudo apt install ros-foxy-hls-lfcd-lds-driver Reading package lists... Done Building dependency tree ...
3.1.4 Install TurtleBot3 Packages - Binary Install
We should be able to replace the following source install with this binary install. This install was done using binaries.
$ sudo apt install ros-foxy-dynamixel-sdk $ sudo apt install ros-foxy-turtlebot3-msgs $ sudo apt install ros-foxy-turtlebot3
3.1.4 Install TurtleBot3 Packages - Source Install
$ sudo apt-get install ros-foxy-dynamixel-sdk* Reading package lists... Done Building dependency tree ... $ sudo apt remove ros-foxy-turtlebot3-msgs Reading package lists... Done Building dependency tree ... $ sudo apt remove ros-foxy-turtlebot3 Reading package lists... Done Building dependency tree ... $ mkdir -p ~/turtlebot3_ws/src $ cd ~/turtlebot3_ws/src/ $ git clone -b foxy-devel https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git Cloning into 'turtlebot3_msgs'... remote: Enumerating objects: 19, done. remote: Counting objects: 100% (19/19), done. remote: Compressing objects: 100% (13/13), done. remote: Total 261 (delta 3), reused 12 (delta 2), pack-reused 242 Receiving objects: 100% (261/261), 74.79 KiB | 2.99 MiB/s, done. Resolving deltas: 100% (104/104), done. $ git clone -b foxy-devel https://github.com/ROBOTIS-GIT/turtlebot3.git Cloning into 'turtlebot3'... remote: Enumerating objects: 23, done. remote: Counting objects: 100% (23/23), done. remote: Compressing objects: 100% (15/15), done. remote: Total 5464 (delta 6), reused 15 (delta 2), pack-reused 5441 Receiving objects: 100% (5464/5464), 119.74 MiB | 8.50 MiB/s, done. Resolving deltas: 100% (3419/3419), done. $ pwd /home/eepp/turtlebot3_ws/src $ cd .. $ colcon build --symlink-install Starting >>> turtlebot3_msgs Starting >>> turtlebot3_description Starting >>> turtlebot3_cartographer Starting >>> turtlebot3_navigation2 Finished <<< turtlebot3_description [0.52s] Starting >>> turtlebot3_teleop Finished <<< turtlebot3_cartographer [0.55s] Finished <<< turtlebot3_navigation2 [0.97s] Finished <<< turtlebot3_msgs [1.57s] Starting >>> turtlebot3_node Starting >>> turtlebot3_example Finished <<< turtlebot3_teleop [1.57s] Finished <<< turtlebot3_example [1.11s] [Processing: turtlebot3_node] Finished <<< turtlebot3_node [34.3s] Starting >>> turtlebot3_bringup Finished <<< turtlebot3_bringup [1.35s] Starting >>> turtlebot3 Finished <<< turtlebot3 [1.32s] Summary: 9 packages finished [38.8s]
3.1.5 Environment Configuration
$ echo 'source ~/turtlebot3_ws/install/setup.bash' >> ~/.bashrc $ echo 'export ROS_DOMAIN_ID=30 #TURTLEBOT3' >> ~/.bashrc
Add this to end of .bashrc
$ export TURTLEBOT3_MODEL=burger $ source ~/.bashrc