def __init__(self, jdrc, prefix):
        '''
        Rgbd Contructor.
        Exits When it receives a Exception diferent to Ice.ConnectionRefusedException

        @param jdrc: Comm Communicator
        @param prefix: Name of client in config file

        @type jdrc: Comm Communicator
        @type prefix: String
        '''

        self.lock = threading.Lock()
        self.image = Image()

        try:

            ic = jdrc.getIc()
            proxyStr = jdrc.getConfig().getProperty(prefix+".Proxy")
            basecamera = ic.stringToProxy(proxyStr)
            self.proxy = jderobot.RgbdPrx.checkedCast(basecamera)
            #self.imgFormat = jdrc.getConfig().getProperty(prefix+".Format")
            #if not self.imgFormat:
            #    self.imgFormat = "RGB8"

            self.update()

            if not self.proxy:
                print ('Interface ' + prefix + ' not configured')

        except Ice.ConnectionRefusedException:
            print(prefix + ': connection refused')

        except:
            traceback.print_exc()
            exit(-1)
def __init__ ( self , jdrc , prefix ) : self . lock = threading . Lock ( ) self . image = Image ( ) try : ic = jdrc . getIc ( ) proxyStr = jdrc . getConfig ( ) . getProperty ( prefix + ".Proxy" ) basecamera = ic . stringToProxy ( proxyStr ) self . proxy = jderobot . RgbdPrx . checkedCast ( basecamera ) self . update ( ) if not self . proxy : print ( 'Interface ' + prefix + ' not configured' ) except Ice . ConnectionRefusedException : print ( prefix + ': connection refused' ) except : traceback . print_exc ( ) exit ( - 1 )
Rgbd Contructor.
        Exits When it receives a Exception diferent to Ice.ConnectionRefusedException

        @param jdrc: Comm Communicator
        @param prefix: Name of client in config file

        @type jdrc: Comm Communicator
        @type prefix: String