def __init__(self, endpoint, connection): """ Initialize the Robot. @param endpoint: Robot Client which is responsible for monitoring the robots in this process. @type endpoint: rce.robot.RobotClient @param connection: The connection manager for robot namespaces. @type connection: rce.robot.Connection """ Namespace.__init__(self, endpoint) interface_map = { Types.encode('PublisherConverter') : PublisherConverter, Types.encode('SubscriberConverter') : SubscriberConverter, Types.encode('ServiceClientConverter') : ServiceClientConverter, Types.encode('ServiceProviderConverter') : ServiceProviderConverter, Types.encode('PublisherForwarder') : PublisherForwarder, Types.encode('SubscriberForwarder') : SubscriberForwarder, Types.encode('ServiceClientForwarder') : ServiceClientForwarder, Types.encode('ServiceProviderForwarder') : ServiceProviderForwarder } self._map.update(interface_map) self._connection = connection
def __init__(self, client, status, reactor): """ Initialize the Environment. @param client: Environment Client which is responsible for monitoring the environment in this process. @type client: rce.robot.EnvironmentClient @param status: Status observer which is used to inform the Master of the environment's status. @type status: twisted.spread.pb.RemoteReference @param reactor: Reference to the twisted reactor used in this robot process. @type reactor: twisted::reactor """ self._client = client client.registerEnvironment(self) self._reactor = reactor self._loader = Loader() self._nodes = set() self._parameters = set() Namespace.__init__(self, status)
def __init__(self, endpoint, connection): """ Initialize the Robot. @param endpoint: Robot Client which is responsible for monitoring the robots in this process. @type endpoint: rce.robot.RobotClient @param connection: The connection manager for robot namespaces. @type connection: rce.robot.Connection """ Namespace.__init__(self, endpoint) interface_map = { Types.encode('PublisherConverter'): PublisherConverter, Types.encode('SubscriberConverter'): SubscriberConverter, Types.encode('ServiceClientConverter'): ServiceClientConverter, Types.encode('ServiceProviderConverter'): ServiceProviderConverter, Types.encode('PublisherForwarder'): PublisherForwarder, Types.encode('SubscriberForwarder'): SubscriberForwarder, Types.encode('ServiceClientForwarder'): ServiceClientForwarder, Types.encode('ServiceProviderForwarder'): ServiceProviderForwarder } self._map.update(interface_map) self._connection = connection
def __init__(self, endpoint): """ Initialize the Environment. @param endpoint: Environment Client which is responsible for monitoring the environment in this process. @type endpoint: rce.robot.EnvironmentClient """ Namespace.__init__(self, endpoint) interface_map = { Types.encode('PublisherInterface'): PublisherInterface, Types.encode('SubscriberInterface'): SubscriberInterface, Types.encode('ServiceClientInterface'): ServiceClientInterface, Types.encode('ServiceProviderInterface'): ServiceProviderInterface } self._map.update(interface_map) self._nodes = set() self._parameters = set()
def __init__(self, endpoint): """ Initialize the Environment. @param endpoint: Environment Client which is responsible for monitoring the environment in this process. @type endpoint: rce.robot.EnvironmentClient """ Namespace.__init__(self, endpoint) interface_map = { Types.encode('PublisherInterface') : PublisherInterface, Types.encode('SubscriberInterface') : SubscriberInterface, Types.encode('ServiceClientInterface') : ServiceClientInterface, Types.encode('ServiceProviderInterface') : ServiceProviderInterface } self._map.update(interface_map) self._nodes = set() self._parameters = set()
def __init__(self, client, reactor): """ Initialize the Environment. @param client: Environment Client which is responsible for monitoring the environment in this process. @type client: rce.robot.EnvironmentClient @param reactor: Reference to the twisted reactor used in this robot process. @type reactor: twisted::reactor """ Namespace.__init__(self) self._client = client client.registerEnvironment(self) self._reactor = reactor self._loader = Loader() self._nodes = set() self._parameters = set()