Problem using cv2_to_imgmsg() in python for ROS node [closed]

asked 2019-03-31 11:41:33 -0600

Ghost gravatar image

Hello everyone, I am trying to convert open_cv 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 RGBD_SLAM, 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.


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Ghost
close date 2019-04-02 12:07:19.900110


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

janindu gravatar image janindu  ( 2019-03-31 20:47:37 -0600 )edit