Adding a static camera to a world in gazebo ros hydro [closed]

asked 2014-05-23 15:33:33 -0500

dbcooper gravatar image

updated 2014-05-23 20:16:15 -0500

I am trying to include a static camera model to a kitchen world and save them using rosbag. However when i launch the world file, the camera doesn't seem to be loaded as there are no rostopics for that camera nor I can see the camera in gazebo simulator. I am using ROS hydro on Ubuntu 12.04.

<?xml version="1.0" ?>
<sdf version="1.4">
  <world name="default">
    <!-- A global light source -->
    <!-- A ground plane -->
    <!-- Kitchen environment -->
    <!--Camera -->
    <model name="camera_box">
      <link name="camera_link">
        <pose>0.05 0.05 0.05 0 0 0</pose>
        <visual name="camera_visual">
              <size>1 1 1</size>
        <sensor name="wall_camera" type="camera">
          <plugin filename="" name="camera_en_ros">

    <!-- Own physics settings to speed up simulation -->
    <physics type='ode'>
      <gravity>0 0 -9.8</gravity>

I also looked at the camera available in the gui tag, but I don't if there is any way to save those images. What am I doing wrong, please help me with it.

I also tried adding camera model using the include tag, but if i put a tutlebot_gazebo in it too, an error comes that "Sensors failed to initialize when loading model[mobile_base]." Is it that the cameras are generated to the same rostopic /camera/rgb/image_raw ?? If so, how can i get the images of the camera into a new rostopic ?

    <pose>-21 -11 12 0 0.44 0.35</pose>

So how do i get a rostopic for the include camera part ?? I think this will solve all my problems

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2018-01-30 20:57:51.380598