Ar drone - camera transparent images [closed]

asked 2017-07-24 07:00:53 -0600

kchledowski gravatar image

updated 2017-07-24 07:23:01 -0600

gvdhoorn gravatar image


I am using a python script to control the tum ar drone. I have prepared an environment in gazebo, in which the drone flies and captures the image. However, in the image my camera captures, the chairs and other objects are transparent. I have included the images from the camera below: 1- during the experiment, 2 - saved to .png using below callback

def front_image_callback(self, msg):
        # Convert your ROS Image message to OpenCV2
        cv2_img = CvBridge().imgmsg_to_cv2(msg, "bgr8")
    except CvBridgeError, e:
        # Save OpenCV2 image as a jpeg
        cv2.imwrite('front_camera/image_{}.jpeg'.format(self.k), cv2_img)
        self.k += 1


Does anybody have an idea how can I update the camera not to be transparent? In my gazebo world, everything is normal, as shown in this image:


edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2019-05-20 02:36:58.011316



They're not transparent, but rendered only as wireframes.

In my gazebo world, everything is normal,

I would say they look strange in Gazebo as well. Not sure if that is related.

gvdhoorn gravatar imagegvdhoorn ( 2017-07-24 07:24:12 -0600 )edit

Is there something that looks strange in Gazebo to you, except the wireframes of the chairs?

kchledowski gravatar imagekchledowski ( 2017-07-24 07:55:00 -0600 )edit

Do you know how one can turn off wireframes in Gazebo? ;)

kchledowski gravatar imagekchledowski ( 2017-07-24 08:07:17 -0600 )edit

or maybe you know any other normal Gazebo chair models? I am having troubles finding them.

kchledowski gravatar imagekchledowski ( 2017-07-24 08:29:48 -0600 )edit

I'm not much of a Gazebo user, so I haven't run into any of this.

This is either a Gazebo issue, or a problem with the camera plugin (gazebo_ros_pkgs). If the former, you should probably ask about it over at The latter would be a ROS issue.

gvdhoorn gravatar imagegvdhoorn ( 2017-07-24 09:10:08 -0600 )edit

I think it might be something with the camera, because in the second picture there should be a green square below the drone (which is possible to see in gazebo)

kchledowski gravatar imagekchledowski ( 2017-07-25 04:25:56 -0600 )edit

Do you have any ideas on where can I try changing the camera output?

kchledowski gravatar imagekchledowski ( 2017-07-25 04:39:25 -0600 )edit