Beispiel #1
0
 def __init__(self, robot=None, period=rob_control_sample_rate, **kwd):
     SMOSyncObject.__init__(self,
                            threaded=True,
                            auto_serialize=False,
                            auto_compute=False,
                            period=period,
                            **kwd)
     self.robot = robot
     return
 def __init__(self,
              call_robot=None,
              robot_name=test_robot_name,
              period=rob_control_sample_rate,
              **kwd):
     SMOSyncObject.__init__(self,
                            id_str=test_robot_name,
                            threaded=True,
                            auto_serialize=False,
                            auto_compute=False,
                            period=period,
                            **kwd)
     self.call_robot = call_robot
     return
Beispiel #3
0
 def __init__(self, robot_proxy, period=ROB_CONNECTION_SAMPLE_RATE, **kwd):
     """
         CCSCallRobotConnectLoop.__init__ Class spans a worker thread on GUI side for the communication
     """
     SMOSyncObject.__init__(self,
                            threaded=True,
                            auto_serialize=False,
                            auto_compute=False,
                            period=period)
     if robot_proxy is not None:
         self.robot_proxy = robot_proxy
     else:
         if MY_TEST:
             SMOBaseObject.debug_handler.out(
                 '*** ERROR *** Get no CSCCallRobotConnect_1 instance')
     return
Beispiel #4
0
    def __init__(self,
                 call_robot,
                 robot_name=TEST_ROBOT_NAME,
                 period=ROB_CONTROL_SAMPLE_RATE,
                 **kwd):

        SMOSyncObject.__init__(self,
                               id_str=robot_name,
                               threaded=True,
                               auto_serialize=False,
                               auto_compute=False,
                               period=period,
                               **kwd)
        if call_robot is not None:
            self.call_robot = call_robot
        else:
            if self.error:
                SMOBaseObject.debug_handler.out(
                    '*** ERROR *** Get no CCSCallRobot_1 instance')
        return