Closed slowrunner closed 3 years ago
I successfully installed YDLIDAR-SDK and ydlidar_test reports "successfully connected" and "running correctly"
Firmware version 1.10 Hardware version: 1 Model: X4 OS: Ubuntu 20.04.2 64-bit Server CPU: Raspberry Pi 3B+ ROS2 version ros
I cloned ydlidar_ros2_driver and build initially failed with "Summary: 1 package finished [1min 13s]":
pi@ROSbot:~/rosbot-on-gopigo3/handsonros2$ colcon build --symlink-install --packages-select ydlidar_ros2_driver Starting >>> ydlidar_ros2_driver [Processing: ydlidar_ros2_driver] [Processing: ydlidar_ros2_driver] --- stderr: ydlidar_ros2_driver /home/pi/rosbot-on-gopigo3/handsonros2/src/ydlidar_ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp: In lambda function: /home/pi/rosbot-on-gopigo3/handsonros2/src/ydlidar_ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp:163:54: warning: unused parameter ‘request_header’ [-Wunused-parameter] 163 | [&laser](const std::shared_ptr<rmw_request_id_t> request_header, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /home/pi/rosbot-on-gopigo3/handsonros2/src/ydlidar_ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp:164:56: warning: unused parameter ‘req’ [-Wunused-parameter] 164 | const std::shared_ptr<std_srvs::srv::Empty::Request> req, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /home/pi/rosbot-on-gopigo3/handsonros2/src/ydlidar_ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp:165:51: warning: unused parameter ‘response’ [-Wunused-parameter] 165 | std::shared_ptr<std_srvs::srv::Empty::Response> response) -> bool | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /home/pi/rosbot-on-gopigo3/handsonros2/src/ydlidar_ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp: In lambda function: /home/pi/rosbot-on-gopigo3/handsonros2/src/ydlidar_ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp:173:54: warning: unused parameter ‘request_header’ [-Wunused-parameter] 173 | [&laser](const std::shared_ptr<rmw_request_id_t> request_header, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /home/pi/rosbot-on-gopigo3/handsonros2/src/ydlidar_ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp:174:56: warning: unused parameter ‘req’ [-Wunused-parameter] 174 | const std::shared_ptr<std_srvs::srv::Empty::Request> req, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /home/pi/rosbot-on-gopigo3/handsonros2/src/ydlidar_ros2_ws/src/ydlidar_ros2_driver/src/ydlidar_ros2_driver_node.cpp:175:51: warning: unused parameter ‘response’ [-Wunused-parameter] 175 | std::shared_ptr<std_srvs::srv::Empty::Response> response) -> bool | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ --- Finished <<< ydlidar_ros2_driver [1min 12s] Summary: 1 package finished [1min 13s] 1 package had stderr output: ydlidar_ros2_driver
I ran "ros2 doctor" which updated ament_index_python and ament_index_cpp to 1.0.2, and sqlite3_vendor, among other ROS packages.
When I repeated my build command - it succeeded.
pi@ROSbot:~/rosbot-on-gopigo3/handsonros2$ colcon build --symlink-install --packages-select ydlidar_ros2_driver Starting >>> ydlidar_ros2_driver Finished <<< ydlidar_ros2_driver [1.68s] Summary: 1 package finished [2.91s]
I too getting the same pblm an anyone help?
I successfully installed YDLIDAR-SDK and ydlidar_test reports "successfully connected" and "running correctly"
I cloned ydlidar_ros2_driver and build initially failed with "Summary: 1 package finished [1min 13s]":
I ran "ros2 doctor" which updated ament_index_python and ament_index_cpp to 1.0.2, and sqlite3_vendor, among other ROS packages.
When I repeated my build command - it succeeded.