victorprad / InfiniTAM

A Framework for the Volumetric Integration of Depth Images
http://www.infinitam.org
Other
918 stars 351 forks source link

RealSense SDK 2.0 depth scale query is wrong #126

Open shane7226107 opened 5 years ago

shane7226107 commented 5 years ago

Hi guys,

When I'am trying this project with RealSense D435 camera, CLI shows that the depth scale is "0" which means something maybe going wrong.

Then I figure out the query should be fixed like: untitled

You should not try to cast any sensor to rs2::depth_sensor because a color sensor can also be cast to depth_sensor successfully.

Use of pipeline_profile.get_device().first<rs2::depth_sensor>(); will return the depth sensor correctly.

Thanks!

fenneishi commented 4 years ago

hi, Visual Studio19+RealSenseD435+infiniTAM,shows this: thanks for your suggestion? image and SDK2.0 is OK image thanks!thanks!

fenneishi commented 4 years ago

hi, Visual Studio19+RealSenseD435+infiniTAM,shows this: thanks for your suggestion? image and SDK2.0 is OK image thanks!thanks! The problem has been solved via,thanks