Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

colcon build with stderr output: realsense_ros #152

Open
MarcoAndrade26 opened this issue Aug 26, 2020 · 1 comment
Open

colcon build with stderr output: realsense_ros #152

MarcoAndrade26 opened this issue Aug 26, 2020 · 1 comment

Comments

@MarcoAndrade26
Copy link

Hi! I was following this steps on Ubuntu 20.04:

cd ros2_intel_realsense
git checkout refactor
source /opt/ros/foxy/setup.bash
cd ~/ros2_ws

But when executing the command:
colcon build --symlink-install

I am getting this error:

ubuntu@ubuntu:~/ros2_ws$ colcon build --symlink-install
Starting >>> realsense_msgs
Finished <<< realsense_msgs [3.11s]                     
Starting >>> realsense_ros
[Processing: realsense_ros]                             
[Processing: realsense_ros]                                     
--- stderr: realsense_ros                                          
/home/ubuntu/ros2_ws/src/ros2_intel_realsense/realsense_ros/src/rs_base.cpp: In constructor ‘realsense::RealSenseBase::RealSenseBase(rs2::context, rs2::device, rclcpp::Node&)’:
/home/ubuntu/ros2_ws/src/ros2_intel_realsense/realsense_ros/src/rs_base.cpp:45:29: warning: ‘rclcpp::Node::OnParametersSetCallbackType rclcpp::Node::set_on_parameters_set_callback(rclcpp::Node::OnParametersSetCallbackType)’ is deprecated: use add_on_set_parameters_callback(OnParametersSetCallbackType callback) instead [-Wdeprecated-declarations]
   45 |       std::placeholders::_1));
      |                             ^
In file included from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28,
                 from /opt/ros/foxy/include/rclcpp/executors.hpp:22,
                 from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146,
                 from /home/ubuntu/ros2_ws/src/ros2_intel_realsense/realsense_ros/include/realsense/rs_base.hpp:22,
                 from /home/ubuntu/ros2_ws/src/ros2_intel_realsense/realsense_ros/src/rs_base.cpp:21:
/opt/ros/foxy/include/rclcpp/node.hpp:866:3: note: declared here
  866 |   set_on_parameters_set_callback(rclcpp::Node::OnParametersSetCallbackType callback);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/ros2_intel_realsense/realsense_ros/tests/camera_core.cpp: In function ‘void getMsgInfo(rs2_stream, const ConstSharedPtr&)’:
/home/ubuntu/ros2_ws/src/ros2_intel_realsense/realsense_ros/tests/camera_core.cpp:88:86: warning: format not a string literal and no format arguments [-Wformat-security]
   88 | cv[stream], msg->encoding.length() + 1, msg->encoding.c_str());
      |                                                              ^

/home/ubuntu/ros2_ws/src/ros2_intel_realsense/realsense_ros/tests/camera_core.cpp: In function ‘void getCameraInfo(rs2_stream, sensor_msgs::msg::CameraInfo_<std::allocator<void> >::SharedPtr)’:
/home/ubuntu/ros2_ws/src/ros2_intel_realsense/realsense_ros/tests/camera_core.cpp:101:39: warning: format not a string literal and no format arguments [-Wformat-security]
  101 |     info_msg->distortion_model.c_str());
      |                                       ^
---
Finished <<< realsense_ros [1min 15s]
Starting >>> realsense_node
Finished <<< realsense_node [3.32s]                          
Starting >>> realsense_examples
Finished <<< realsense_examples [1.13s]                        

Summary: 4 packages finished [1min 22s]
  1 package had stderr output: realsense_ros

Then, execute it again and it said 'colcon build successful'.

Then, I ran this command: ros2 launch realsense_examples rs_demo_rgbd.launch.py and got the following error.

[INFO] [launch]: All log files can be found below /home/ubuntu/.ros/log/2020-08-26-14-18-34-958947-ubuntu-6003
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [rviz2-1]: process started with pid [6005]
[INFO] [realsense_node-2]: process started with pid [6007]
[realsense_node-2] [INFO] [1598476715.391199502] [camera]: Device's serial number is not set, enabling the default device!
[realsense_node-2] [INFO] [1598476715.426587501] [camera]: Device with serial number 017322070779 was found.
[realsense_node-2] [INFO] [1598476715.433117549] [camera]: Create a node for D4X5 Camera
[rviz2-1] [ERROR] [1598476715.667873538] [rviz2]: Invalid type 'string' for parameter 'use_sim_time', should be 'bool'
[rviz2-1] [INFO] [1598476716.864310394] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-1] [INFO] [1598476716.865508417] [rviz2]: OpenGl version: 3.3 (GLSL 3.3)
[rviz2-1] [INFO] [1598476716.972764548] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-1] [ERROR] [1598476717.126749620] [transform_listener_impl_5644b088f1f0]: Invalid type 'string' for parameter 'use_sim_time', should be 'bool'
[rviz2-1] [ERROR] [1598476717.337193218] [transform_listener_impl_5644b0907550]: Invalid type 'string' for parameter 'use_sim_time', should be 'bool'
[rviz2-1] [INFO] [1598476717.794099517] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-1] [INFO] [1598476718.020780693] [rviz2]: Stereo is NOT SUPPORTED
[ERROR] [rviz2-1]: process has died [pid 6005, exit code -11, cmd '/opt/ros/foxy/lib/rviz2/rviz2 -d /home/ubuntu/ros2_ws/install/realsense_examples/share/realsense_examples/config/demo_rgbd.rviz --ros-args -r __node:=rviz2 --params-file /tmp/launch_params_usf4mr42'].

And when running other examples, also crashed.

@cardboardcode
Copy link

Getting the same error as well via the same commands ran.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants