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

Publish JPEG Image from Drive

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

ROS_NOOB_CYBORG gravatar image

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

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
0

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

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

Comments

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 -0500 )edit

Question Tools

Stats

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

Seen: 605 times

Last updated: Dec 14 '12