ros-drivers / openni2_camera

ROS wrapper for openni 2.0
http://wiki.ros.org/openni2_camera
BSD 3-Clause "New" or "Revised" License
56 stars 96 forks source link

build error #139

Closed anfederman closed 4 months ago

anfederman commented 4 months ago

: note: declared here 74 | CameraPublisher create_camera_publisher( | ^~~~~~~ /home/ubuntu/ros2_ws/src/openni2_camera/openni2_camera/src/openni2_driver.cpp:198:58: error: too many arguments to function ‘image_transport::CameraPublisher image_transport::create_camera_publisher(rclcpp::Node*, const string&, rmw_qos_profile_t)’ 198 | pubdepth = image_transport::create_camera_publisher(this, "depth/image", custom_qos, pub_options); | ~~~~~~~~^~~~~~~~~~ In file included from /home/ubuntu/ros2_ws/src/openni2_camera/openni2_camera/include/openni2_camera/openni2_driver.h:39, from /home/ubuntu/ros2_ws/src/openni2_camera/openni2_camera/src/openni2_driver.cpp:32: /opt/ros/humble/include/image_transport/image_transport/image_transport.hpp:74:17: note: declared here 74 | CameraPublisher create_camera_publisher( | ^~~~~~~ gmake[2]: [CMakeFiles/openni2_camera_lib.dir/build.make:76: CMakeFiles/openni2_camera_lib.dir/src/openni2_driver.cpp.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:656: CMakeFiles/openni2_camera_lib.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

Failed <<< openni2_camera [21.9s, exited with code 2]

Summary: 22 packages finished [41.1s] 1 package failed: openni2_camera 1 package had stderr output: openni2_camer.....

Hi Mike - Working on Mockturlebot project with Camp - trying to old Asus working.

mikeferguson commented 4 months ago

This is almost certainly a versioning issue - make sure you're using the right branch of openni2_camera - there is an "iron" branch which should work on Humble/Iron, the "ros2" branch requires Jazzy or Rolling (because it implements lazy subscribers, through these function calls using added parameters). The branch notes are in the README

anfederman commented 4 months ago

Thanks! Hope you checkout HBRC tonight.

On Wed, May 29, 2024, 1:03 PM Michael Ferguson @.***> wrote:

This is almost certainly a versioning issue - make sure you're using the right branch of openni2_camera - there is an "iron" branch which should work on Humble/Iron, the "ros2" branch requires Jazzy or Rolling (because it implements lazy subscribers, through these function calls using added parameters). The branch notes are in the README

— Reply to this email directly, view it on GitHub https://github.com/ros-drivers/openni2_camera/issues/139#issuecomment-2138172224, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHZ37YQYWWPI54GY6V7L6DZEYYAVAVCNFSM6AAAAABIPLE3MKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZYGE3TEMRSGQ . You are receiving this because you authored the thread.Message ID: @.***>

anfederman commented 4 months ago

Thanks works great:

@.***:~$ ros2 topic list /camera/depth/camera_info /camera/depth/image /camera/depth/image/compressed /camera/depth/image/compressedDepth /camera/depth/image/theora /camera/depth/image_raw /camera/depth/image_raw/compressed /camera/depth/image_raw/compressedDepth /camera/depth/image_raw/theora /camera/ir/camera_info /camera/ir/image /camera/ir/image/compressed /camera/ir/image/compressedDepth /camera/ir/image/theora /camera/projector/camera_info /camera/rgb/camera_info /camera/rgb/image_raw /camera/rgb/image_raw/compressed /camera/rgb/image_raw/compressedDepth /camera/rgb/image_raw/theora /parameter_events /rosout

On Wed, May 29, 2024 at 5:04 PM Michael Ferguson @.***> wrote:

Closed #139 https://github.com/ros-drivers/openni2_camera/issues/139 as completed.

— Reply to this email directly, view it on GitHub https://github.com/ros-drivers/openni2_camera/issues/139#event-12978396092, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHZ37ZGZL2F7L4JE6VDYXLZEZUJRAVCNFSM6AAAAABIPLE3MKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSHE3TQMZZGYYDSMQ . You are receiving this because you authored the thread.Message ID: @.***>