goktug97/dso_ros2

Colcon build errors

srirama02 opened this issue · 1 comments

Hi @goktug97 ,
I am trying to build dso_ros2 and I am getting some errors related to ROS in the dso_ros2/dso/src/camera.cpp file. I'm not sure if this is an issue with my system or with the code it self.

Starting >>> dso --- stderr: dso /home/srira/sbel/dso_workspace/dso_ros2/dso/src/camera.cpp: In function ‘int main(int, char**)’: /home/srira/sbel/dso_workspace/dso_ros2/dso/src/camera.cpp:61:94: error: no matching function for call to ‘rclcpp::Node::create_publisher<sensor_msgs::msg::Image>(std::string&, rmw_qos_profile_t&)’ 61 | auto pub = node->create_publisher<sensor_msgs::msg::Image>(topic, custom_camera_qos_profile); | ^ 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/srira/sbel/dso_workspace/dso_ros2/dso/src/camera.cpp:8:

image

Hello,

I wrote this wrapper when ROS2 was in beta so probably ros function signatures are changed. I am no longer maintaining this repo but if you can make it work by updating the functions, open a pull request and I can merge it.