Difference between revisions of "Hood NUC ROS 2 Foxy Install 20210311 V2"

From wikidb
Jump to: navigation, search
(Install Gazebo11)
(3.1.4 Install TurtleBot3 Packages - Source Install)
 
(6 intermediate revisions by the same user not shown)
Line 42: Line 42:
 
         ...
 
         ...
  
== Install Cartographer ==
+
== 4 Install Cartographer ==
  
 
   $ sudo apt install ros-foxy-cartographer
 
   $ sudo apt install ros-foxy-cartographer
Line 54: Line 54:
 
         ...
 
         ...
  
== Install Navigation2 ==
+
== 5 Install Navigation2 ==
  
 
   $ sudo apt install ros-foxy-navigation2
 
   $ sudo apt install ros-foxy-navigation2
Line 66: Line 66:
 
         ...
 
         ...
  
== Install vcstool ==
+
== 6 Install vcstool ==
  
 
   $ sudo apt install python3-vcstool
 
   $ sudo apt install python3-vcstool
Line 72: 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 79: 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 90: 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 | 602.00 KiB/s, done.
+
         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
+
  $ git clone -b foxy-devel https://github.com/ROBOTIS-GIT/turtlebot3.git
 
         Cloning into 'turtlebot3'...
 
         Cloning into 'turtlebot3'...
         remote: Enumerating objects: 5441, done.
+
         remote: Enumerating objects: 23, done.
         remote: Total 5441 (delta 0), reused 0 (delta 0), pack-reused 5441
+
        remote: Counting objects: 100% (23/23), done.
         Receiving objects: 100% (5441/5441), 119.74 MiB | 4.18 MiB/s, done.
+
        remote: Compressing objects: 100% (15/15), done.
         Resolving deltas: 100% (3413/3413), 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
 
   $ pwd
Line 105: Line 136:
 
  $ cd ..
 
  $ cd ..
 
    
 
    
$ colcon build --symlink-install
+
  $ colcon build --symlink-install
 
         Starting >>> turtlebot3_msgs
 
         Starting >>> turtlebot3_msgs
        [0.259s] WARNING:colcon.colcon_core.prefix_path.colcon:The path '/home/eepp/turtlebot3_ws/src/install' in the environment variable COLCON_PREFIX_PATH doesn't exist
 
        [0.259s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/eepp/turtlebot3_ws/src/install/turtlebot3_teleop' in the environment variable AMENT_PREFIX_PATH doesn't exist
 
        [0.259s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/eepp/turtlebot3_ws/src/install/turtlebot3_example' in the environment variable AMENT_PREFIX_PATH doesn't exist
 
        [0.259s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eepp/turtlebot3_ws/src/install/turtlebot3' in the environment variable CMAKE_PREFIX_PATH doesn't exist
 
        [0.259s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eepp/turtlebot3_ws/src/install/turtlebot3_bringup' in the environment variable CMAKE_PREFIX_PATH doesn't exist
 
        [0.260s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eepp/turtlebot3_ws/src/install/turtlebot3_node' in the environment variable CMAKE_PREFIX_PATH doesn't exist
 
        [0.260s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eepp/turtlebot3_ws/src/install/turtlebot3_navigation2' in the environment variable CMAKE_PREFIX_PATH doesn't exist
 
        [0.260s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eepp/turtlebot3_ws/src/install/turtlebot3_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
 
        [0.260s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eepp/turtlebot3_ws/src/install/turtlebot3_description' in the environment variable CMAKE_PREFIX_PATH doesn't exist
 
        [0.260s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eepp/turtlebot3_ws/src/install/turtlebot3_cartographer' in the environment variable CMAKE_PREFIX_PATH doesn't exist
 
 
         Starting >>> turtlebot3_description
 
         Starting >>> turtlebot3_description
 
         Starting >>> turtlebot3_cartographer
 
         Starting >>> turtlebot3_cartographer
 
         Starting >>> turtlebot3_navigation2
 
         Starting >>> turtlebot3_navigation2
         Finished <<< turtlebot3_cartographer [1.89s]                      
+
         Finished <<< turtlebot3_description [0.52s]                            
 
         Starting >>> turtlebot3_teleop
 
         Starting >>> turtlebot3_teleop
         Finished <<< turtlebot3_navigation2 [1.92s]
+
         Finished <<< turtlebot3_cartographer [0.55s]
         Finished <<< turtlebot3_description [2.25s]                       
+
         Finished <<< turtlebot3_navigation2 [0.97s]                               
        Finished <<< turtlebot3_teleop [0.90s]                               
+
         Finished <<< turtlebot3_msgs [1.57s]                                    
         Finished <<< turtlebot3_msgs [15.3s]                      
+
 
         Starting >>> turtlebot3_node
 
         Starting >>> turtlebot3_node
 
         Starting >>> turtlebot3_example
 
         Starting >>> turtlebot3_example
         Finished <<< turtlebot3_example [0.89s]                            
+
        Finished <<< turtlebot3_teleop [1.57s]                         
         Finished <<< turtlebot3_node [26.2s]                       
+
         Finished <<< turtlebot3_example [1.11s]                           
 +
        [Processing: turtlebot3_node]                            
 +
         Finished <<< turtlebot3_node [34.3s]                       
 
         Starting >>> turtlebot3_bringup
 
         Starting >>> turtlebot3_bringup
         Finished <<< turtlebot3_bringup [1.10s]                   
+
         Finished <<< turtlebot3_bringup [1.35s]                   
 
         Starting >>> turtlebot3
 
         Starting >>> turtlebot3
         Finished <<< turtlebot3 [1.06s]                   
+
         Finished <<< turtlebot3 [1.32s]                   
 
   
 
   
         Summary: 9 packages finished [43.9s]
+
         Summary: 9 packages finished [38.8s]
  
 
= 3.1.5 Environment Configuration =
 
= 3.1.5 Environment Configuration =

Latest revision as of 15:19, 28 June 2021

References

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   
       ...

5 Install Navigation2

 $ 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

Notes and Logs

Foxy Install Hood 20210311 Notes and Logs