softbankrobotics-research / qibullet

Bullet simulation for SoftBank Robotics robots
Apache License 2.0
145 stars 38 forks source link

Depth camera doesn't see robot's own joints #38

Closed wagenaartje closed 4 years ago

wagenaartje commented 4 years ago

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[bot] commented 4 years ago

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

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

mbusy commented 4 years ago

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: