ethz-asl / vgn

Real-time 6 DOF grasp detection in clutter.
BSD 3-Clause "New" or "Revised" License
257 stars 55 forks source link

TSDF get_grid gives color€[0,1] and not signed distance #19

Closed aniketghodake10 closed 2 years ago

aniketghodake10 commented 2 years ago

How can we know from colour value whether perticular voxel is outside the surface, on the surface or inside the surface ?

Signed distance could have helped. Any way we can get the signed distance of every voxel ??

aniketghodake10 commented 2 years ago

Does color value=0.5 mean the voxel is very near to surface ?? And >0.5 means voxel is outside the surface??

mbreyer commented 2 years ago

The Open3D implementation scales the distance values from [-sdf_trunc, sdf_trunc] to [0, 1]. So yes, a value of 0.5 means the voxel lies on the surface and values >0.5 correspond to outside voxels.