def __init__(self, quality=Kinect2BridgedQuality.HD, frame='kinect2_rgb_optical_frame'):
        """Initialize a Kinect v2 sensor which connects to the iai_kinect2 bridge
        ----------
        quality : :obj:`str`
            The quality (HD, Quarter-HD, SD) of the image data that should be subscribed to
        frame : :obj:`str`
            The name of the frame of reference in which the sensor resides.
            If None, this will be set to 'kinect2_rgb_optical_frame'
       """
        # set member vars
        self._frame = frame

        self.topic_image_color = '/kinect2/%s/image_color_rect' %(quality)
        self.topic_image_depth = '/kinect2/%s/image_depth_rect' %(quality)
        self.topic_info_camera = '/kinect2/%s/camera_info' %(quality)
        
        self._initialized = False
        self._format = None
        self._camera_intr = None
        self._cur_depth_im = None
        self._running = False
        self._bridge = CvBridge()
def __init__ ( self , quality = Kinect2BridgedQuality . HD , frame = 'kinect2_rgb_optical_frame' ) : self . _frame = frame self . topic_image_color = '/kinect2/%s/image_color_rect' % ( quality ) self . topic_image_depth = '/kinect2/%s/image_depth_rect' % ( quality ) self . topic_info_camera = '/kinect2/%s/camera_info' % ( quality ) self . _initialized = False self . _format = None self . _camera_intr = None self . _cur_depth_im = None self . _running = False self . _bridge = CvBridge ( )
Initialize a Kinect v2 sensor which connects to the iai_kinect2 bridge
        ----------
        quality : :obj:`str`
            The quality (HD, Quarter-HD, SD) of the image data that should be subscribed to
        frame : :obj:`str`
            The name of the frame of reference in which the sensor resides.
            If None, this will be set to 'kinect2_rgb_optical_frame'