Crysta Install Turtlebot3 Repos Errors
From wikidb
Contents
No module named 'numpy'
Fix: Install python3-numpy
# Not documented $ sudo apt install python3-numpy
Error Log
$ colcon build --symlink-install Starting >>> nav2_common Starting >>> nav_2d_msgs Starting >>> angles Starting >>> behaviortree_cpp Finished <<< nav2_common [1.54s] Starting >>> nav2_msgs Finished <<< angles [3.70s] Starting >>> nav2_voxel_grid [Processing: behaviortree_cpp, nav2_msgs, nav2_voxel_grid, nav_2d_msgs] Finished <<< nav2_voxel_grid [43.7s] Starting >>> cv_bridge --- stderr: cv_bridge Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'numpy' CMake Error at src/CMakeLists.txt:27 (message): Could not determine the NumPy include directory, verify that NumPy was installed correctly. --- Failed <<< cv_bridge [ Exited with code 1 ] Aborted <<< nav_2d_msgs Aborted <<< behaviortree_cpp Aborted <<< nav2_msgs Summary: 3 packages finished [4min 35s] 1 package failed: cv_bridge 3 packages aborted: behaviortree_cpp nav2_msgs nav_2d_msgs 1 package had stderr output: cv_bridge 48 packages not processed
Installing Python2 version Didn't help
References
Install
$ sudo apt install python-numpy [sudo] password for eepp: Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: gfortran python-nose python-numpy-dbg python-numpy-doc The following NEW packages will be installed: python-numpy 0 upgraded, 1 newly installed, 0 to remove and 247 not upgraded. Need to get 1,938 kB of archives. After this operation, 10.9 MB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python-numpy amd64 1:1.13.3-2ubuntu1 [1,938 kB] Fetched 1,938 kB in 1s (1,573 kB/s) Selecting previously unselected package python-numpy. (Reading database ... 242562 files and directories currently installed.) Preparing to unpack .../python-numpy_1%3a1.13.3-2ubuntu1_amd64.deb ... Unpacking python-numpy (1:1.13.3-2ubuntu1) ... Setting up python-numpy (1:1.13.3-2ubuntu1) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Explore
$ apt list --installed python-numpy Listing... Done python-numpy/bionic,now 1:1.13.3-2ubuntu1 amd64 [installed]
$ apt search python-numpy Sorting... Done Full Text Search... Done python-numpy/bionic,now 1:1.13.3-2ubuntu1 amd64 [installed] Numerical Python adds a fast array facility to the Python language
$ python Python 2.7.15+ (default, Nov 27 2018, 23:36:35) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as np Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named numpy
$ python3 Python 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as np Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'numpy'
$ apt list --installed | grep numpy WARNING: apt does not have a stable CLI interface. Use with caution in scripts. libboost-numpy-dev/bionic,now 1.65.1.0ubuntu1 amd64 [installed,automatic] libboost-numpy1.65-dev/bionic,now 1.65.1+dfsg-0ubuntu5 amd64 [installed,automatic] libboost-numpy1.65.1/bionic,now 1.65.1+dfsg-0ubuntu5 amd64 [installed,automatic]
$ apt list --installed python-numpy Listing... Done
$ apt search python-numpy Sorting... Done Full Text Search... Done python-numpy/bionic 1:1.13.3-2ubuntu1 amd64 Numerical Python adds a fast array facility to the Python language ...
Failed Test
$ colcon build --symlink-install
Starting >>> nav2_common Starting >>> nav_2d_msgs Starting >>> angles Starting >>> behaviortree_cpp Finished <<< nav2_common [0.66s] Starting >>> nav2_msgs Finished <<< angles [0.74s] Starting >>> nav2_voxel_grid Finished <<< nav2_voxel_grid [0.93s] Starting >>> cv_bridge Finished <<< behaviortree_cpp [2.88s] Starting >>> camera_calibration_parsers --- stderr: cv_bridge Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'numpy' CMake Error at src/CMakeLists.txt:27 (message): Could not determine the NumPy include directory, verify that NumPy was installed correctly. --- Failed <<< cv_bridge [ Exited with code 1 ] Aborted <<< nav_2d_msgs Aborted <<< camera_calibration_parsers Aborted <<< nav2_msgs Summary: 4 packages finished [16.7s] 1 package failed: cv_bridge 3 packages aborted: camera_calibration_parsers nav2_msgs nav_2d_msgs 1 package had stderr output: cv_bridge 47 packages not processed
numpy test
$ cat numpy_example.py # test numpy # https://docs.scipy.org/doc/numpy/user/quickstart.html import numpy as np a = np.arange(15).reshape(3, 5) print (a) # array([[ 0, 1, 2, 3, 4], # [ 5, 6, 7, 8, 9], # [10, 11, 12, 13, 14]]) print (a.shape) # (3, 5) print (a.ndim) # 2 print (a.dtype.name) # 'int64' $ python numpy_example.py [[ 0 1 2 3 4] [ 5 6 7 8 9] [10 11 12 13 14]] (3, 5) 2 int64
QoSInitialization has not been declared
References
Clean Build
$ mv turtlebot3_ws/ turtlebot3_ws_01_20190713
$ mkdir -p ~/turtlebot3_ws/src
$ cd ~/turtlebot3_ws
$ wget https://raw.githubusercontent.com/ROBOTIS-GIT/turtlebot3/ros2/turtlebot3.repos --2019-07-13 19:23:44-- 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-13 19:23:44 (75.9 MB/s) - ‘turtlebot3.repos’ saved [1458/1458] eepp@hood:turtlebot3_ws$ sudo apt-get install python3-vcstool [sudo] password for eepp: eepp@hood:turtlebot3_ws$ 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.54s] Starting >>> nav2_msgs Finished <<< angles [3.46s] Starting >>> nav2_voxel_grid [Processing: behaviortree_cpp, nav2_msgs, nav2_voxel_grid, nav_2d_msgs] Finished <<< nav2_voxel_grid [43.8s] Starting >>> cv_bridge [Processing: behaviortree_cpp, cv_bridge, nav2_msgs, nav_2d_msgs] Finished <<< nav_2d_msgs [1min 31s] Starting >>> dwb_msgs Finished <<< cv_bridge [1min 1s] Starting >>> camera_calibration_parsers Finished <<< behaviortree_cpp [1min 54s] Starting >>> cartographer Finished <<< camera_calibration_parsers [29.7s] Starting >>> cartographer_ros_msgs [Processing: cartographer, cartographer_ros_msgs, dwb_msgs, nav2_msgs] [Processing: cartographer, cartographer_ros_msgs, dwb_msgs, nav2_msgs] [Processing: cartographer, cartographer_ros_msgs, dwb_msgs, nav2_msgs] [Processing: cartographer, cartographer_ros_msgs, dwb_msgs, nav2_msgs] [Processing: cartographer, cartographer_ros_msgs, dwb_msgs, nav2_msgs] Finished <<< dwb_msgs [3min 42s] Starting >>> gazebo_dev Finished <<< gazebo_dev [3.56s] Starting >>> gazebo_msgs [Processing: cartographer, cartographer_ros_msgs, gazebo_msgs, nav2_msgs] [Processing: cartographer, cartographer_ros_msgs, gazebo_msgs, nav2_msgs] Finished <<< cartographer_ros_msgs [4min 14s] Starting >>> image_transport --- 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)); ^09:58, 15 July 2019 (PDT)09:58, 15 July 2019 (PDT)09:58, 15 July 2019 (PDT)~ make[2]: *** [CMakeFiles/image_transport.dir/src/camera_publisher.cpp.o] Error 1 make[1]: *** [CMakeFiles/image_transport.dir/all] Error 2 make: *** [all] Error 2 --- Failed <<< image_transport [ Exited with code 2 ] Aborted <<< nav2_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; } ~~^[[User:Edc|Edc]] ([[User talk:Edc|talk]]) --- Aborted <<< cartographer Summary: 10 packages finished [17min 38s] 1 package failed: image_transport 3 packages aborted: cartographer gazebo_msgs nav2_msgs 2 packages had stderr output: cartographer image_transport 41 packages not processed