Gazebo | Ignition | Community
Ask Your Question

Streaming Camera Data to Separate Application

asked 2013-03-13 10:34:44 -0600

crypticstar gravatar image

I am in the process of building an application where I would like to embed the Gazebo simulation environment only into my application and then run non-interactive ROS modules on it. It seems like I should be able to acquire frames from the camera like in the tutorial here and then pipe them elsewhere for display. Does that seem like a feasible way to approach the problem? I don't want to get too deep into hacking and find out what I'm doing isn't viable at all.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-03-14 02:04:21 -0600

iche033 gravatar image

That is one way of doing it.

The other way is to subscribe to the image topic from your application. This will require your application to compile against gazebo though. Find the topic using gztopic list in command line. This example shows how to subscribe to a topic, and here (line 120 and line 145) shows you how to get the image data from the msg.

edit flag offensive delete link more

answered 2015-05-21 20:49:29 -0600

Zheng yo chen gravatar image

updated 2015-05-21 21:07:13 -0600

here is my example

Preview video:

QT Project:

Camera Plugin :

1.add a camera with CameraPublisher in .world file

2.execute QT application

edit flag offensive delete link more


Hi Zheng Yo Chen I am interested to learn from your experience. Can you add "multi_obj_evaluation_platform/models/wrench_0_08m" to your example ? I am trying to run your Thanks

mhallak gravatar imagemhallak ( 2016-11-29 05:09:44 -0600 )edit

wrench_0_08m is nothing to do with that example, it can work well without that model,you can just simply remove wrench_0_08m. by the way,my example is a dumb implementation. OSRF did live stream by themselves, check this : (Gazebo Rendering Abstraction 2015-09-29)

Zheng yo chen gravatar imageZheng yo chen ( 2016-12-23 08:29:28 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2013-03-13 10:34:44 -0600

Seen: 2,832 times

Last updated: Nov 29 '16