Scene labeling using a depth camera

asked 2015-12-16 17:57:27 -0500

Arun gravatar image

updated 2015-12-16 20:09:39 -0500

Is there any way to get a labeling of the scene as seen from a depth camera - a mapping between each pixel of the image and the corresponding object that generated the depth for that pixel as seen from the camera's viewpoint? So, for a scene with a single table in the middle, all the pixels corresponding to the table have to be labelled as "table". I've tried using the function:

GetVisualAt(CameraPtr camera, const math::Vector2i &mousePos)

from gazebo::rendering::Scene which casts a ray into the scene to find the intersecting object for a pixel but this is too slow for my use case (assuming a 640 x 480 image, this takes of the order of hundreds of seconds). I think that OGRE would compute this when it renders depth maps, but I'm not too sure how or where to look to get access to this. Any suggestions?

edit retag flag offensive close merge delete


I'm trying to do something similar, it seems like there's a LogicalCamera class in the newer gazebo versions that seem to have some of this functionality (still not pixel-level segmentation). Any one know of how we could get pixel-level ground truth segmentation from gazebo?

spillai gravatar imagespillai ( 2016-03-16 12:51:59 -0500 )edit

Can you use "GetVisualAt" function successfully? When I'm using it, it complains: "gzserver: symbol lookup error: catkin_ws/devel/lib/ undefined symbol: _ZN6gazebo9rendering6Camera6ZValueEii" Anyone knows the reason? I really appreciate it!

Whyamihere gravatar imageWhyamihere ( 2018-10-23 09:37:38 -0500 )edit