Ask Your Question
0

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
0

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

Comments

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 280 times

Last updated: Dec 14 '12