Robotics StackExchange | Archived questions

Problem using cv2_to_imgmsg() in python for ROS node

Hello everyone, I am trying to convert opencv images of type float to ROS imgmsg() but unable to do that. Actually I have to convert them and publish then to a topic for RGBDSLAM, which takes two topics as input one is RGB image and other is depth image for which it is required to convert cv image to some format whic is understandable by ROS. i serached for it and came across ROS docs and this example, but unable to implement that can anyone help me with this.

regards

Asked by Ghost on 2019-03-31 11:41:33 UTC

Comments

Can you please add your code snippet + any errors you are getting (compile time / run time)?

Asked by janindu on 2019-03-31 20:47:37 UTC

Answers