facebookresearch/pyrobot

Depth Image Demo

swinterbotix opened this issue · 2 comments

I've done the full install using Python 2 on an Interbotix Locobot on the latest commit to master as of this date

I noticed that while I am able to get Depth images from the camera_image.py script in the examples/locobot/navigation directory, the camera_control.py script just gives me a black window - I'm not seeing any grayish or white pixels - just pure blackness. Not exactly sure what the difference between these two scripts are that in the camera_image.py script, depth capture works and in camera_control.py it doesn't - but though it worth pointing out.

As an FYI, the RGB capture works just fine in both example scripts.

try to 👍

  • #cv2.imshow("Depth", depth)
    + cv2.imshow("Depth", actual_depth_values)

This discrepancy was because the depth image was in different units in both the script.
Depth image units have been standardized to meters in this commit 9ea22bd on Develop.