Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ROS Pluging in model.sdf (Not Working)

Hi everyone,

I am trying to add ROS camera model to the gazebo model.Camera and mymodel are different models. Camera model sdf like below: image description

I start empty_world.launch with a roslaunch gazebo_ros empty_world.launch command.After that instert the camera model to the world.When I enter the rostopic list to the console ,I can see the topics about the camera. Also I can see the image in the Topic Visualization in Gazebo. Shortly everything is fine.

I added camera model to the mymodel like below;

<include>
  <uri>model://camera</uri>
  <pose>0.2 0 0.2 0 0 0</pose>
</include>
<joint name="camera_joint" type="fixed">
  <child>camera::link</child>
  <parent>plane::base_link</parent>
</joint>

and I start the empty_world like above and then instert my model to the world.I do not get a any error during this operations.When I enter the rostopic list to the console also ı can see the topics.I do not see any image in the Topic Visualization.When I try to rostopic echo /image_raw I didn't see any message on the topic.When I add only camera model I saw.

What I am doing wrong!!! Thanks.