ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Publish JPEG Image from Drive

asked 2012-12-14 18:20:02 -0600

ROS_NOOB_CYBORG gravatar image

updated 2014-04-20 14:09:29 -0600

ngrennan gravatar image

Hi guys, I have this python code that is able to save an image on my hardrive in JPEG format. The question I want to ask if any of you guys know how to publish this image as a sensor_msg/image in ROS. Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2012-12-14 18:38:53 -0600

Check out this tutorial: Writing a simple image publisher.

It provides an example of a minimal ros node which reads an image from file using cv::bridge and publishes it.

Note that the example uses the older, C-style OpenCV API. If you're interested in using the newer C++ API, but don't know how, comment here and I'll try to put together a code snippet.

edit flag offensive delete link more


Ok man, thanks for the link! :) I try mine using python btw

ROS_NOOB_CYBORG gravatar image ROS_NOOB_CYBORG  ( 2013-01-03 14:56:01 -0600 )edit

Question Tools


Asked: 2012-12-14 18:20:02 -0600

Seen: 597 times

Last updated: Dec 14 '12