Gazebo | Ignition | Community
Ask Your Question

Warped camera data from a new Gazebo/ROS install [closed]

asked 2015-01-15 20:20:24 -0500

SL Remy gravatar image

updated 2015-01-20 17:37:33 -0500

Hello! I have a fresh Indigo install on 14.04 with Gazebo2 installed from debs:

wget -O - | sudo apt-key add - 
sudo apt-get -y install ros-indigo-gazebo-ros-pkgs

But I'm noticing some odd data from the camera sensor on a hector_quadrotor_demo. I've never run 2.X before and did not notice this in Gazebo 1.9, so I can't say if it's something that is directly related to 2.X or not.

Using (as per suggestion)

DISPLAY=:1 gazebo /usr/share/gazebo-2.2/worlds/

and then

gztopic view /gazebo/default/camera/link/camera/image

I see the following

image description

When the same tool is used to view the image topic for the hector world though, a warped image is seen.

image description

The world file for the hector world is below:

<?xml version="1.0" ?>
<sdf version="1.4">
  <world name="default">
      <ambient>0.5 0.5 0.5 1</ambient>
      <background>0.5 0.5 0.5 1</background>
    <physics type="ode">
      <gravity>0 0 -9.8</gravity>
    <light type="directional" name="my_light">
      <pose>0 0 30 0 0 0</pose>
      <diffuse>.5 .5 .5 1</diffuse>
      <specular>.1 .1 .1 1</specular>
      <direction>0 0 -1</direction>
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by SL Remy
close date 2015-12-08 07:04:32.383804


Can you look in ~/.gazebo/ogre.log for any errors or exceptions? Can you also try disabling shadows (click on "Scene" in the "World" tab, then disable shadows in the property list)?

nkoenig gravatar imagenkoenig ( 2015-01-20 14:04:41 -0500 )edit

Compiler error: unknown error in hector_materials.material(4): token "shading" is not recognized Compiler error: unknown error in hector_materials.material(29): token "lighting" is not recognized Compiler error: unknown error in hector_materials.material(80): token "lighting" is not recognized Compiler error: unknown error in hector_materials.material(96): token "lighting" is not recognized

SL Remy gravatar imageSL Remy ( 2015-01-20 16:35:12 -0500 )edit

Looks like the shadows are already off in the world file though

SL Remy gravatar imageSL Remy ( 2015-01-20 17:40:19 -0500 )edit

If it's easy for you, I'd try using Gazebo4. I'll have to try this with gazebo2 to see if I can reproduce the problem.

nkoenig gravatar imagenkoenig ( 2015-01-21 12:43:14 -0500 )edit

I ran your world file in Gazebo4, and it looked fine. This only means that there is either a problem with Gazebo2, or there is something wrong with your particular setup (hardware, drivers, etc). I'll try gazebo2 next.

nkoenig gravatar imagenkoenig ( 2015-01-21 14:22:32 -0500 )edit

I will try Gazebo4 as well

SL Remy gravatar imageSL Remy ( 2015-01-22 21:53:21 -0500 )edit

Hasn't been as easy as I'd hoped. This is taking a while to iron out the installation steps for Gazebo4 and Indigo

SL Remy gravatar imageSL Remy ( 2015-01-26 13:40:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-01-16 09:13:06 -0500

nkoenig gravatar image

I assume the normal render window looks fine, correct?

Can you try something a bit easier?

  1. Run: gazebo worlds/
  2. When the GUI appears, press CTRL-t to open the topic visualizer.
  3. Select one of the camera image topics, should be /gazebo/defualt/camera/link/camera/image
  4. Does the image look correct? If so, try to fiddle with the environment (add objects, move the camera, etc) to see where it breaks.
edit flag offensive delete link more

Question Tools


Asked: 2015-01-15 20:20:24 -0500

Seen: 387 times

Last updated: Jan 20 '15