code: def _depth_im_callback(self, msg):
          
          try:
              self._cur_depth_im = DepthImage(self._bridge.imgmsg_to_cv2(msg) / 1000.0, frame=self._frame)
          except:
              self._cur_depth_im = None
docs: Callback for handling depth images.