Example #1
0
    def connectToProxys(self):
        self.ic = Ice.initialize(sys.argv)

        # Contact to pose3d
        pose3d = self.ic.propertyToProxy('automata.Pose3D.Proxy')
        if (not pose3d):
            raise Exception('could not create proxy with pose3d')
        self.pose3dPrx = Pose3DPrx.checkedCast(pose3d)
        if (not self.pose3dPrx):
            raise Exception('invalid proxy automata.Pose3D.Proxy')
        print 'pose3d connected'

        # Contact to cmdVel
        cmdVel = self.ic.propertyToProxy('automata.CMDVel.Proxy')
        if (not cmdVel):
            raise Exception('could not create proxy with cmdVel')
        self.cmdVelPrx = CMDVelPrx.checkedCast(cmdVel)
        if (not self.cmdVelPrx):
            raise Exception('invalid proxy automata.CMDVel.Proxy')
        print 'cmdVel connected'

        # Contact to extra
        extra = self.ic.propertyToProxy('automata.ArDroneExtra.Proxy')
        if (not extra):
            raise Exception('could not create proxy with extra')
        self.extraPrx = ArDroneExtraPrx.checkedCast(extra)
        if (not self.extraPrx):
            raise Exception('invalid proxy automata.ArDroneExtra.Proxy')
        print 'extra connected'
Example #2
0
	def connectToProxys(self):
		self.ic = Ice.initialize(sys.argv)

		# Contact to Motors
		Motors = self.ic.propertyToProxy('automata.Motors.Proxy')
		if(not Motors):
			raise Exception('could not create proxy with Motors')
		self.MotorsPrx = MotorsPrx.checkedCast(Motors)
		if(not self.MotorsPrx):
			raise Exception('invalid proxy automata.Motors.Proxy')
		print 'Motors connected'

		# Contact to Pose3D
		Pose3D = self.ic.propertyToProxy('automata.Pose3D.Proxy')
		if(not Pose3D):
			raise Exception('could not create proxy with Pose3D')
		self.Pose3DPrx = Pose3DPrx.checkedCast(Pose3D)
		if(not self.Pose3DPrx):
			raise Exception('invalid proxy automata.Pose3D.Proxy')
		print 'Pose3D connected'

		# Contact to Laser
		Laser = self.ic.propertyToProxy('automata.Laser.Proxy')
		if(not Laser):
			raise Exception('could not create proxy with Laser')
		self.LaserPrx = LaserPrx.checkedCast(Laser)
		if(not self.LaserPrx):
			raise Exception('invalid proxy automata.Laser.Proxy')
		print 'Laser connected'
Example #3
0
    def connectToProxys(self):
        self.ic = Ice.initialize(sys.argv)

        # Contact to Motors
        Motors = self.ic.propertyToProxy('automata.Motors.Proxy')
        if (not Motors):
            raise Exception('could not create proxy with Motors')
        self.MotorsPrx = MotorsPrx.checkedCast(Motors)
        if (not self.MotorsPrx):
            raise Exception('invalid proxy automata.Motors.Proxy')
        print 'Motors connected'

        # Contact to Pose3D
        Pose3D = self.ic.propertyToProxy('automata.Pose3D.Proxy')
        if (not Pose3D):
            raise Exception('could not create proxy with Pose3D')
        self.Pose3DPrx = Pose3DPrx.checkedCast(Pose3D)
        if (not self.Pose3DPrx):
            raise Exception('invalid proxy automata.Pose3D.Proxy')
        print 'Pose3D connected'

        # Contact to Laser
        Laser = self.ic.propertyToProxy('automata.Laser.Proxy')
        if (not Laser):
            raise Exception('could not create proxy with Laser')
        self.LaserPrx = LaserPrx.checkedCast(Laser)
        if (not self.LaserPrx):
            raise Exception('invalid proxy automata.Laser.Proxy')
        print 'Laser connected'
Example #4
0
File: try3.py Project: reysam93/TFG
	def connectToProxys(self):
		self.ic = Ice.initialize(sys.argv)

		# Contact to pose3d
		pose3d = self.ic.propertyToProxy('automata.Pose3D.Proxy')
		if(not pose3d):
			raise Exception('could not create proxy with pose3d')
		self.pose3dPrx = Pose3DPrx.checkedCast(pose3d)
		if(not self.pose3dPrx):
			raise Exception('invalid proxy automata.Pose3D.Proxy')
		print 'pose3d connected'

		# Contact to cmdVel
		cmdVel = self.ic.propertyToProxy('automata.CMDVel.Proxy')
		if(not cmdVel):
			raise Exception('could not create proxy with cmdVel')
		self.cmdVelPrx = CMDVelPrx.checkedCast(cmdVel)
		if(not self.cmdVelPrx):
			raise Exception('invalid proxy automata.CMDVel.Proxy')
		print 'cmdVel connected'

		# Contact to extra
		extra = self.ic.propertyToProxy('automata.ArDroneExtra.Proxy')
		if(not extra):
			raise Exception('could not create proxy with extra')
		self.extraPrx = ArDroneExtraPrx.checkedCast(extra)
		if(not self.extraPrx):
			raise Exception('invalid proxy automata.ArDroneExtra.Proxy')
		print 'extra connected'
Example #5
0
	def connectToProxys(self):
		self.ic = Ice.initialize(sys.argv)

		# Contact to Extra
		Extra = self.ic.propertyToProxy('automata.ArDroneExtra.Proxy')
		if(not Extra):
			raise Exception('could not create proxy with Extra')
		self.ExtraPrx = ArDroneExtraPrx.checkedCast(Extra)
		if(not self.ExtraPrx):
			raise Exception('invalid proxy automata.ArDroneExtra.Proxy')
		print 'Extra connected'

		# Contact to CMDVel
		CMDVel = self.ic.propertyToProxy('automata.CMDVel.Proxy')
		if(not CMDVel):
			raise Exception('could not create proxy with CMDVel')
		self.CMDVelPrx = CMDVelPrx.checkedCast(CMDVel)
		if(not self.CMDVelPrx):
			raise Exception('invalid proxy automata.CMDVel.Proxy')
		print 'CMDVel connected'

		# Contact to Camera
		Camera = self.ic.propertyToProxy('automata.Camera.Proxy')
		if(not Camera):
			raise Exception('could not create proxy with Camera')
		self.CameraPrx = CameraPrx.checkedCast(Camera)
		if(not self.CameraPrx):
			raise Exception('invalid proxy automata.Camera.Proxy')
		print 'Camera connected'

		# Contact to Pose3D
		Pose3D = self.ic.propertyToProxy('automata.Pose3D.Proxy')
		if(not Pose3D):
			raise Exception('could not create proxy with Pose3D')
		self.Pose3DPrx = Pose3DPrx.checkedCast(Pose3D)
		if(not self.Pose3DPrx):
			raise Exception('invalid proxy automata.Pose3D.Proxy')
		print 'Pose3D connected'
Example #6
0
    def connectToProxys(self):
        self.ic = Ice.initialize(sys.argv)

        # Contact to Extra
        Extra = self.ic.propertyToProxy('automata.ArDroneExtra.Proxy')
        if (not Extra):
            raise Exception('could not create proxy with Extra')
        self.ExtraPrx = ArDroneExtraPrx.checkedCast(Extra)
        if (not self.ExtraPrx):
            raise Exception('invalid proxy automata.ArDroneExtra.Proxy')
        print 'Extra connected'

        # Contact to CMDVel
        CMDVel = self.ic.propertyToProxy('automata.CMDVel.Proxy')
        if (not CMDVel):
            raise Exception('could not create proxy with CMDVel')
        self.CMDVelPrx = CMDVelPrx.checkedCast(CMDVel)
        if (not self.CMDVelPrx):
            raise Exception('invalid proxy automata.CMDVel.Proxy')
        print 'CMDVel connected'

        # Contact to Pose3D
        Pose3D = self.ic.propertyToProxy('automata.Pose3D.Proxy')
        if (not Pose3D):
            raise Exception('could not create proxy with Pose3D')
        self.Pose3DPrx = Pose3DPrx.checkedCast(Pose3D)
        if (not self.Pose3DPrx):
            raise Exception('invalid proxy automata.Pose3D.Proxy')
        print 'Pose3D connected'

        # Contact to Camera
        Camera = self.ic.propertyToProxy('automata.Camera.Proxy')
        if (not Camera):
            raise Exception('could not create proxy with Camera')
        self.CameraPrx = CameraPrx.checkedCast(Camera)
        if (not self.CameraPrx):
            raise Exception('invalid proxy automata.Camera.Proxy')
        print 'Camera connected'