catkin_make error of building realsense2_camera

asked 2018-08-28 10:39:16 -0600

nerdy_ryan gravatar image

updated 2018-08-29 01:44:57 -0600

gvdhoorn gravatar image

I'm using realsense D415 and following the installation guide here(https://github.com/intel-ros/realsense). During the catkin_make process, i keep receive a error down below

In file included from /usr/include/librealsense2/hpp/rs_device.hpp:8:0,
                 from /usr/include/librealsense2/hpp/rs_record_playback.hpp:8,
                 from /usr/include/librealsense2/hpp/rs_context.hpp:8,
                 from /usr/include/librealsense2/rs.hpp:9,
                 from /home/ldsc/catkin_ws/src/realsense_ros_camera/src/../include/../include/realsense_node_factory.h:11,
                 from /home/ldsc/catkin_ws/src/realsense_ros_camera/src/../include/base_realsense_node.h:6,
                 from /home/ldsc/catkin_ws/src/realsense_ros_camera/src/base_realsense_node.cpp:1:
/usr/include/librealsense2/hpp/rs_sensor.hpp: In instantiation of ‘void rs2::frame_callback<T>::on_frame(rs2_frame*) [with T = rs2::asynchronous_syncer; rs2_frame = rs2_frame]’:
/home/ldsc/catkin_ws/src/realsense_ros_camera/src/base_realsense_node.cpp:1383:1:   required from here
/usr/include/librealsense2/hpp/rs_sensor.hpp:109:13: error: no match for call to ‘(rs2::asynchronous_syncer) (rs2::frame)’
             on_frame_function(frame{ fref });
             ^
realsense_ros_camera/CMakeFiles/realsense_ros_camera.dir/build.make:86: recipe for target 'realsense_ros_camera/CMakeFiles/realsense_ros_camera.dir/src/base_realsense_node.cpp.o' failed

Do anyone have any experiences on it ? Thanks!

edit retag flag offensive close merge delete

Comments

There are matched versions of librealsense to ros realsense. Are you using one of the supported combinations?

stevemacenski gravatar imagestevemacenski ( 2018-08-28 11:12:03 -0600 )edit

HI! How can i check my librealsense version and ROS realsense2_camera version? Thanks!

nerdy_ryan gravatar imagenerdy_ryan ( 2018-08-29 01:36:07 -0600 )edit

I'd recommend reading the documentation for the releases you've used

stevemacenski gravatar imagestevemacenski ( 2018-08-29 12:46:23 -0600 )edit