Ask Your Question

Kinect sensor unable to see objects placed in front of it

asked 2018-05-01 15:12:54 -0500

Hey everyone!

I am Aaditya Saraiya and to start of my GSoC 2018 project, I wish to simulate a Kinect sensor in Gazebo. I followed the Gazebo tutorial to simulate a Kinect sensor which uses the OpenNI driver. I am running ROS Kinetic on Ubuntu 16.04, Gazebo version 7 and RViz version 1.12.15 (kinetic).

Initially, rostopic list was not showing the depth and image topics.This post helped me to solve that issue. However, even though the point cloud data is being posted, the sphere placed in front of the Kinect is not visible in RViz, which can be observed in the image. I tried moving the Kinect near and farther away from the objects considering the fact that Kinect has a minimum and maximum depth of visibility.

image description

Some peculiar things which I noted was that on using rostopic echo on the /tf topic, there is warning message which is as follows:

WARNING: no messages received and simulated time is active. Is /clock being published?

However, infact, the /clock is being published (automatically by Gazebo I think).

Secondly, Fixed frame window under the Global status in Rviz has the following warning.

No tf data. Actual error: Fixed Frame [camera_link] does not exist.

I have added the camera plugin as well which has been taken from the Gazebo tutorial.

 <plugin name="camera_plugin" filename="">
  <!-- Keep this zero, update_rate in the parent <sensor> tag
    will control the frame rate. -->

Is there some issue behind tf not being published properly?

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-01 16:39:26 -0500

updated 2018-05-01 17:19:50 -0500

In the left frame, it looks as if the sphere & cube are behind the Kinect, not in front of it.

Make sure you've added an optical frame to get a properly transformed depth cloud in RViz (see: )

edit flag offensive delete link more


Thank you so much! It was a silly error on my part. Will look into the optical frame part as well.

aaditya_saraiya gravatar image aaditya_saraiya  ( 2018-05-01 17:18:06 -0500 )edit

No problem. Good luck with your project!

josephcoombe gravatar image josephcoombe  ( 2018-05-01 17:19:13 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-05-01 15:12:54 -0500

Seen: 521 times

Last updated: May 01 '18