Difference between revisions of "Hood Install Turtlebot3 ROS2 Dashing"

From wikidb
Jump to: navigation, search
(NEW)
(NEW)
Line 337: Line 337:
  
 
* [https://github.com/ros-planning/navigation2/issues/893 Build failed (test_msgs in nav2_util)]
 
* [https://github.com/ros-planning/navigation2/issues/893 Build failed (test_msgs in nav2_util)]
 +
 +
<pre>
 +
$ sudo apt install ros-dashing-test-msgs
 +
[sudo] password for eepp:
 +
Reading package lists... Done
 +
Building dependency tree     
 +
Reading state information... Done
 +
The following NEW packages will be installed:
 +
  ros-dashing-test-msgs
 +
0 upgraded, 1 newly installed, 0 to remove and 238 not upgraded.
 +
Need to get 2,291 kB of archives.
 +
After this operation, 30.5 MB of additional disk space will be used.
 +
Get:1 http://packages.ros.org/ros2/ubuntu bionic/main amd64 ros-dashing-test-msgs amd64 0.7.4-1bionic.20190612.215159 [2,291 kB]
 +
Fetched 2,291 kB in 1s (3,457 kB/s)               
 +
Selecting previously unselected package ros-dashing-test-msgs.
 +
(Reading database ... 257714 files and directories currently installed.)
 +
Preparing to unpack .../ros-dashing-test-msgs_0.7.4-1bionic.20190612.215159_amd64.deb ...
 +
Unpacking ros-dashing-test-msgs (0.7.4-1bionic.20190612.215159) ...
 +
Setting up ros-dashing-test-msgs (0.7.4-1bionic.20190612.215159) ...
 +
Processing triggers for libc-bin (2.27-3ubuntu1) ...
 +
</pre>
 +
 +
$ sudo apt install ros-dashing-tf2-sensor-msgs
 +
    Reading package lists... Done
 +
    Building dependency tree     
 +
    Reading state information... Done
 +
    The following NEW packages will be installed:
 +
      ros-dashing-tf2-sensor-msgs
 +
    0 upgraded, 1 newly installed, 0 to remove and 238 not upgraded.
 +
    Need to get 7,372 B of archives.
 +
    After this operation, 45.1 kB of additional disk space will be used.
 +
    Get:1 http://packages.ros.org/ros2/ubuntu bionic/main amd64 ros-dashing-tf2-sensor-msgs amd64 0.11.3-2bionic.20190613.063043 [7,372 B]
 +
    Fetched 7,372 B in 0s (91.0 kB/s)                     
 +
    Selecting previously unselected package ros-dashing-tf2-sensor-msgs.
 +
    (Reading database ... 258363 files and directories currently installed.)
 +
    Preparing to unpack .../ros-dashing-tf2-sensor-msgs_0.11.3-2bionic.20190613.063043_amd64.deb ...
 +
    Unpacking ros-dashing-tf2-sensor-msgs (0.11.3-2bionic.20190613.063043) ...
 +
    Setting up ros-dashing-tf2-sensor-msgs (0.11.3-2bionic.20190613.063043) ...
 +
 +
eepp@hood:turtlebot3_ws$

Revision as of 10:59, 19 July 2019

$ mkdir -p ~/turtlebot3_ws/src
$ cd ~/turtlebot3_ws
$ wget https://raw.githubusercontent.com/ROBOTIS-GIT/turtlebot3/ros2/turtlebot3.repos
--2019-07-19 09:15:14--  https://raw.githubusercontent.com/ROBOTIS-GIT/turtlebot3/ros2/turtlebot3.repos
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.52.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.52.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1458 (1.4K) [text/plain]
Saving to: ‘turtlebot3.repos.1’

turtlebot3.repos.1  100%[===================>]   1.42K  --.-KB/s    in 0s      

2019-07-19 09:15:15 (78.1 MB/s) - ‘turtlebot3.repos.1’ saved [1458/1458]


$ vcs import src < turtlebot3.repos
............
=== src/cartographer/cartographer (git) ===

Already on 'dashing'
Your branch is up to date with 'origin/dashing'.
=== src/cartographer/cartographer_ros (git) ===

Already on 'dashing'
Your branch is up to date with 'origin/dashing'.
=== src/cartographer/pcl_conversions (git) ===

Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/gazebo/camera_info_manager (git) ===

Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/gazebo/gazebo_ros_pkgs (git) ===
From https://github.com/ros-simulation/gazebo_ros_pkgs
   8d3f2ff..0b7918e  ros2                 -> origin/ros2
 * [new branch]      camera-optical-frame -> origin/camera-optical-frame
 + 89a8d87...b08698b triggered_test       -> origin/triggered_test  (forced update)
Already on 'ros2'
Your branch is behind 'origin/ros2' by 2 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
=== src/gazebo/vision_opencv (git) ===

Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/navigation2/BehaviorTree.CPP (git) ===
From https://github.com/BehaviorTree/BehaviorTree.CPP
   441102b..2db7bfe  master     -> origin/master
Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/navigation2/angles (git) ===

Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/navigation2/navigation2 (git) ===
From https://github.com/ros-planning/navigation2
   da5360a..756265f  dashing-devel -> origin/dashing-devel
   0dec414..4225e7b  master        -> origin/master
 * [new tag]         0.2.2         -> 0.2.2
 * [new tag]         0.2.1         -> 0.2.1
Already on 'dashing-devel'
Your branch is behind 'origin/dashing-devel' by 20 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
=== src/turtlebot3/turtlebot3 (git) ===

Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/turtlebot3/turtlebot3_msgs (git) ===

Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/turtlebot3/turtlebot3_simulations (git) ===

Already on 'ros2'
Your branch is up to date with 'origin/ros2'.


$ colcon build --symlink-install
Starting >>> nav2_common
Starting >>> nav_2d_msgs
Starting >>> angles
Starting >>> behaviortree_cpp
Finished <<< nav2_common [0.68s]                                   
Starting >>> nav2_msgs
Finished <<< angles [0.71s]
Starting >>> nav2_voxel_grid
Finished <<< nav2_voxel_grid [0.99s]                                  
Starting >>> cv_bridge
Finished <<< behaviortree_cpp [2.80s]                                   
Starting >>> camera_calibration_parsers
Finished <<< cv_bridge [1.12s]
Starting >>> cartographer
Finished <<< nav_2d_msgs [2.94s]                                        
Starting >>> dwb_msgs
Finished <<< camera_calibration_parsers [1.54s]                     
Starting >>> cartographer_ros_msgs
Finished <<< dwb_msgs [5.13s]                                        
Starting >>> gazebo_dev
Finished <<< cartographer_ros_msgs [4.07s]                           
Starting >>> gazebo_msgs
Finished <<< gazebo_dev [0.45s]                                      
Starting >>> image_transport
Finished <<< cartographer [16.4s]                                        
Starting >>> turtlebot3_msgs
--- stderr: image_transport                                              
/home/eepp/turtlebot3_ws/src/gazebo/camera_info_manager/image_transport/src/camera_publisher.cpp: In constructor ‘image_transport::CameraPublisher::CameraPublisher(rclcpp::Node*, const string&, rmw_qos_profile_t)’:
/home/eepp/turtlebot3_ws/src/gazebo/camera_info_manager/image_transport/src/camera_publisher.cpp:93:22: error: ‘QoS’ is not a member of ‘rclcpp’
   auto qos = rclcpp::QoS(rclcpp::QoSInitialization::from_rmw(custom_qos));
                      ^~~
/home/eepp/turtlebot3_ws/src/gazebo/camera_info_manager/image_transport/src/camera_publisher.cpp:93:34: error: ‘rclcpp::QoSInitialization’ has not been declared
   auto qos = rclcpp::QoS(rclcpp::QoSInitialization::from_rmw(custom_qos));
                                  ^~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/image_transport.dir/src/camera_publisher.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/image_transport.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< image_transport	[ Exited with code 2 ]
Aborted  <<< turtlebot3_msgs                       
Aborted  <<< nav2_msgs                             
Aborted  <<< gazebo_msgs                                              

Summary: 11 packages finished [38.1s]
  1 package failed: image_transport
  3 packages aborted: gazebo_msgs nav2_msgs turtlebot3_msgs
  1 package had stderr output: image_transport
  40 packages not processed
$ echo $ROS_DISTRO
     dashing


NEW

$ echo $ROS_DISTRO
    dashing
$ mkdir -p ~/turtlebot3_ws/src
$ cd ~/turtlebot3_ws
$ wget https://raw.githubusercontent.com/ROBOTIS-GIT/turtlebot3/ros2/turtlebot3.repos
    --2019-07-19 10:23:43--  https://raw.githubusercontent.com/ROBOTIS-GIT/turtlebot3/ros2/turtlebot3.repos
    Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.52.133
    Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.52.133|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1458 (1.4K) [text/plain]
   Saving to: ‘turtlebot3.repos’

    turtlebot3.repos    100%[===================>]   1.42K  --.-KB/s    in 0s      

    2019-07-19 10:23:43 (69.2 MB/s) - ‘turtlebot3.repos’ saved [1458/1458]
$ vcs import src < turtlebot3.repos
............
=== src/cartographer/cartographer (git) ===
Cloning into '.'...
Switched to a new branch 'dashing'
Branch 'dashing' set up to track remote branch 'dashing' from 'origin'.
=== src/cartographer/cartographer_ros (git) ===
Cloning into '.'...
Switched to a new branch 'dashing'
Branch 'dashing' set up to track remote branch 'dashing' from 'origin'.
=== src/cartographer/pcl_conversions (git) ===
Cloning into '.'...
Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/gazebo/camera_info_manager (git) ===
Cloning into '.'...
Switched to a new branch 'ros2'
Branch 'ros2' set up to track remote branch 'ros2' from 'origin'.
=== src/gazebo/gazebo_ros_pkgs (git) ===
Cloning into '.'...
Switched to a new branch 'ros2'
Branch 'ros2' set up to track remote branch 'ros2' from 'origin'.
=== src/gazebo/vision_opencv (git) ===
Cloning into '.'...
Switched to a new branch 'ros2'
Branch 'ros2' set up to track remote branch 'ros2' from 'origin'.
=== src/navigation2/BehaviorTree.CPP (git) ===
Cloning into '.'...
Switched to a new branch 'ros2'
Branch 'ros2' set up to track remote branch 'ros2' from 'origin'.
=== src/navigation2/angles (git) ===
Cloning into '.'...
Switched to a new branch 'ros2'
Branch 'ros2' set up to track remote branch 'ros2' from 'origin'.
=== src/navigation2/navigation2 (git) ===
Cloning into '.'...
Switched to a new branch 'dashing-devel'
Branch 'dashing-devel' set up to track remote branch 'dashing-devel' from 'origin'.
=== src/turtlebot3/turtlebot3 (git) ===
Cloning into '.'...
Switched to a new branch 'ros2'
Branch 'ros2' set up to track remote branch 'ros2' from 'origin'.
=== src/turtlebot3/turtlebot3_msgs (git) ===
Cloning into '.'...
Switched to a new branch 'ros2'
Branch 'ros2' set up to track remote branch 'ros2' from 'origin'.
=== src/turtlebot3/turtlebot3_simulations (git) ===
Cloning into '.'...
Switched to a new branch 'ros2'
Branch 'ros2' set up to track remote branch 'ros2' from 'origin'.
$ colcon build --symlink-install
Starting >>> nav2_common
Starting >>> nav_2d_msgs
Starting >>> angles
Starting >>> behaviortree_cpp
Finished <<< nav2_common [1.52s]                                   
Starting >>> nav2_msgs
Finished <<< angles [3.56s]                                      
Starting >>> nav2_voxel_grid
[Processing: behaviortree_cpp, nav2_msgs, nav2_voxel_grid, nav_2d_msgs]
Finished <<< nav2_voxel_grid [41.2s]                                   
Starting >>> cv_bridge
Finished <<< nav_2d_msgs [51.3s]                                          
Starting >>> dwb_msgs
[Processing: behaviortree_cpp, cv_bridge, dwb_msgs, nav2_msgs]              
Finished <<< cv_bridge [1min 4s]            
Starting >>> camera_calibration_parsers
Finished <<< behaviortree_cpp [1min 59s]    
Starting >>> cartographer
Finished <<< dwb_msgs [1min 22s]                                               
Starting >>> cartographer_ros_msgs
Finished <<< camera_calibration_parsers [32.1s]                                
Starting >>> gazebo_dev
Finished <<< gazebo_dev [3.37s]                                                
Starting >>> gazebo_msgs
Finished <<< nav2_msgs [2min 49s]                                              
Starting >>> nav2_util
--- stderr: nav2_util                                                         
CMake Error at CMakeLists.txt:16 (find_package):
  By not providing "Findtest_msgs.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "test_msgs", but CMake did not find one.

  Could not find a package configuration file provided by "test_msgs" with
  any of the following names:

    test_msgsConfig.cmake
    test_msgs-config.cmake

  Add the installation prefix of "test_msgs" to CMAKE_PREFIX_PATH or set
  "test_msgs_DIR" to a directory containing one of the above files.  If
  "test_msgs" provides a separate development package or SDK, be sure it has
  been installed.


---
Failed   <<< nav2_util	[ Exited with code 1 ]
Aborted  <<< cartographer_ros_msgs                      
Aborted  <<< gazebo_msgs                                
--- stderr: cartographer                                                       
In file included from /usr/src/googletest/googlemock/include/gmock/gmock-spec-builders.h:75:0,
                 from /usr/src/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /usr/src/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/eepp/turtlebot3_ws/src/cartographer/cartographer/cartographer/io/serialization_format_migration_test.cc:27:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘bool testing::internal::AnyEq::operator()(const A&, const B&) const [with A = unsigned int; B = int]’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:908:18:   required from ‘bool testing::internal::ComparisonBase<D, Rhs, Op>::Impl<Lhs>::MatchAndExplain(Lhs, testing::MatchResultListener*) const [with Lhs = const unsigned int&; D = testing::internal::EqMatcher<int>; Rhs = int; Op = testing::internal::AnyEq]’
/home/eepp/turtlebot3_ws/src/cartographer/cartographer/cartographer/io/serialization_format_migration_test.cc:120:1:   required from here
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:204:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   bool operator()(const A& a, const B& b) const { return a == b; }
                                                          ~~^~~~
---
Aborted  <<< cartographer

Summary: 10 packages finished [11min 33s]
  1 package failed: nav2_util
  3 packages aborted: cartographer cartographer_ros_msgs gazebo_msgs
  2 packages had stderr output: cartographer nav2_util
  41 packages not processed
$ colcon build --symlink-install
Starting >>> nav2_common
Starting >>> nav_2d_msgs
Starting >>> angles
Starting >>> behaviortree_cpp
Finished <<< angles [0.60s]                                        
Starting >>> cv_bridge
Finished <<< nav2_common [0.65s]
Starting >>> nav2_msgs
Finished <<< cv_bridge [0.92s]                                         
Starting >>> nav2_voxel_grid
Finished <<< nav2_voxel_grid [0.67s]                                    
Starting >>> camera_calibration_parsers
Finished <<< behaviortree_cpp [2.36s]                                   
Starting >>> cartographer                                               
Finished <<< nav_2d_msgs [2.41s]
Starting >>> dwb_msgs
Finished <<< camera_calibration_parsers [1.52s]                      
Starting >>> cartographer_ros_msgs
Finished <<< nav2_msgs [3.60s]                                        
Starting >>> nav2_util
--- stderr: nav2_util                                                  
CMake Error at CMakeLists.txt:16 (find_package):
  By not providing "Findtest_msgs.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "test_msgs", but CMake did not find one.

  Could not find a package configuration file provided by "test_msgs" with
  any of the following names:

    test_msgsConfig.cmake
    test_msgs-config.cmake

  Add the installation prefix of "test_msgs" to CMAKE_PREFIX_PATH or set
  "test_msgs_DIR" to a directory containing one of the above files.  If
  "test_msgs" provides a separate development package or SDK, be sure it has
  been installed.


---
Failed   <<< nav2_util	[ Exited with code 1 ]
Aborted  <<< cartographer_ros_msgs               
Aborted  <<< cartographer                         
Aborted  <<< dwb_msgs                                            

Summary: 8 packages finished [7.03s]
  1 package failed: nav2_util
  3 packages aborted: cartographer cartographer_ros_msgs dwb_msgs
  1 package had stderr output: nav2_util
  43 packages not processed
$ sudo apt install ros-dashing-test-msgs
[sudo] password for eepp: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ros-dashing-test-msgs
0 upgraded, 1 newly installed, 0 to remove and 238 not upgraded.
Need to get 2,291 kB of archives.
After this operation, 30.5 MB of additional disk space will be used.
Get:1 http://packages.ros.org/ros2/ubuntu bionic/main amd64 ros-dashing-test-msgs amd64 0.7.4-1bionic.20190612.215159 [2,291 kB]
Fetched 2,291 kB in 1s (3,457 kB/s)                
Selecting previously unselected package ros-dashing-test-msgs.
(Reading database ... 257714 files and directories currently installed.)
Preparing to unpack .../ros-dashing-test-msgs_0.7.4-1bionic.20190612.215159_amd64.deb ...
Unpacking ros-dashing-test-msgs (0.7.4-1bionic.20190612.215159) ...
Setting up ros-dashing-test-msgs (0.7.4-1bionic.20190612.215159) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
$ sudo apt install ros-dashing-tf2-sensor-msgs
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      ros-dashing-tf2-sensor-msgs
    0 upgraded, 1 newly installed, 0 to remove and 238 not upgraded.
    Need to get 7,372 B of archives.
    After this operation, 45.1 kB of additional disk space will be used.
    Get:1 http://packages.ros.org/ros2/ubuntu bionic/main amd64 ros-dashing-tf2-sensor-msgs amd64 0.11.3-2bionic.20190613.063043 [7,372 B]
    Fetched 7,372 B in 0s (91.0 kB/s)                      
    Selecting previously unselected package ros-dashing-tf2-sensor-msgs.
    (Reading database ... 258363 files and directories currently installed.)
    Preparing to unpack .../ros-dashing-tf2-sensor-msgs_0.11.3-2bionic.20190613.063043_amd64.deb ...
    Unpacking ros-dashing-tf2-sensor-msgs (0.11.3-2bionic.20190613.063043) ...
    Setting up ros-dashing-tf2-sensor-msgs (0.11.3-2bionic.20190613.063043) ...

eepp@hood:turtlebot3_ws$