class_docstr: Adds physics simulation on top of kb.Scene using PyBullet.
class_docstr_tok: ["Adds","physics","simulation","on","top","of","kb.Scene","using","PyBullet","."]
code: def check_overlap(self, obj: core.PhysicalObject) -> bool:
      obj_idx = obj.linked_objects[self]
  
      body_ids = [
          self._physics_client.getBodyUniqueId(i)
          for i in range(self._physics_client.getNumBodies())
      ]
      for body_id in body_ids:
          if body_id == obj_idx:
              continue
          overlap_points = self._physics_client.getClosestPoints(
              obj_idx, body_id, distance=0
          )
          if overlap_points:
              return True
      return False
  
imports: import functools
  import inspect
  import logging
  import pathlib
  import sys
  import tempfile
  from typing import Dict, List, Optional, Tuple, Union
  import tensorflow
  from singledispatchmethod import singledispatchmethod
  from kubric import core
  from kubric.redirect_io import RedirectStream
label_desc: Use image node_id 11 for calling the PyBullet obj's underlying member method code with example usage: obj.check_overlap(obj) and returns: False, True