Faulty camera image out of gazebo [closed]

asked 2015-08-20 05:47:41 -0500


I set up a simple launch file which loads an empty world (sun and groundplane) and spawns three objects (container, moveable platform, camera (libgazebo_ros_camera.so)). This setup is correctly displayed in gazebo (5.0.1), but the image of the camera is faulty. The camera image showes everything correctly if a pixel is located over the horizon, but if a pixel is located onto the groundplane (below the horizon) it is only shown as groundplane. The only reference to the objects is the shadow of these, which also appears correctly on the groundplane on the camera image.

My camera-setup is as follows:

<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="camera"> <xacro:property name="height" value="10.0"/> <xacro:property name="PI" value="3.14159265359"/>

<link name="world" />

<joint name="camera_joint" type="fixed">
    <axis xyz="0 1 0" />
    <origin xyz="0 0 ${height}" rpy="0 ${PI / 2.0} 0"/>
    <parent link="world"/>
    <child link="camera_link"/>

<link name="camera_link">
        <origin xyz="0 0 0" rpy="0 0 0"/>
            <box size="0.05 0.05 0.05"/>

        <origin xyz="0 0 0" rpy="0 0 0"/>
            <box size="0.05 0.05 0.05"/>
        <material name="red"/>

        <mass value="1e-5" />
        <origin xyz="0 0 0" rpy="0 0 0"/>
        <inertia ixx="1e-6" ixy="0" ixz="0" iyy="1e-6" iyz="0" izz="1e-6" />

<gazebo reference="camera_link">
    <sensor type="camera" name="camera1" visualize="true">
        <camera name="head">
        <plugin name="camera_controller" filename="libgazebo_ros_camera.so">


Is there any solution to this problem?

Many greetings Michael

edit retag flag offensive reopen merge delete

Closed for the following reason Gazebo Question: The Gazebo community prefers to answer questions at: http://answers.gazebosim.org by tfoote
close date 2015-08-28 03:18:07.660913