softbankrobotics-research / qibullet

Bullet simulation for SoftBank Robotics robots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Depth camera doesn't see robot's own joints

wagenaartje opened this issue · comments

I'm not sure if this is intended behaviour, but the depth camera does not see the robot's hands for instance.

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.75. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Hi @wagenaartje, I'm pretty sure that the near plane of the depth camera is responsible for that behaviour. With Pepper's depth camera (on Pepper < 1.8), the minimum detection distance is 40cm.

So if an object is less than 40cm away from the camera, it won't be detected. In the code, we mimic that behaviour by setting the near plane of the virtual depth camera (depth camera definition, instantiation in pepper_virtual)

If you want to set a custom near plane, you could either:

  • Clone the repo, modify the near plane value when creating the camera in pepper_virtual, and install this custom qibullet package on your computer
  • Directly update the near plane of the camera from your code, by modifying the near_plane variable of the depth camera object