예제 #1
0
파일: converter.py 프로젝트: xranby/rce
    def __init__(self, owner, status, uid, clsName, tag):
        """ Initialize the robot-side Interface.
            
            @param owner:       Namespace to which this interface belongs.
            @type  owner:       rce.robot.Robot
            
            @param status:      Status observer which is used to inform the
                                Master of the interface's status.
            @type  status:      twisted.spread.pb.RemoteReference
            
            @param uid:         Unique ID which is used to identify the
                                interface in the internal communication.
            @type  uid:         uuid.UUID
            
            @param clsName:     Message type/Service type consisting of the
                                package and the name of the message/service,
                                i.e. 'std_msgs/Int32'.
            @type  clsName:     str
            
            @param tag:         Unique ID which is used to identify the
                                interface in the external communication.
            @type  tag:         str
        """
        self._owner = owner
        self._clsName = clsName
        self._tag = tag

        Interface.__init__(self, owner, status, uid)
예제 #2
0
    def __init__(self, owner, status, uid, clsName, addr):
        """ Initialize the ROS-side Interface.

            @param owner:       Namespace to which this interface belongs.
            @type  owner:       rce.environment.Environment

            @param status:      Status observer which is used to inform the
                                Master of the interface's status.
            @type  status:      twisted.spread.pb.RemoteReference

            @param uid:         Unique ID which is used to identify the
                                interface in the internal communication.
            @type  uid:         uuid.UUID

            @param clsName:     Message type/Service type consisting of the
                                package and the name of the message/service,
                                i.e. 'std_msgs/Int32'.
            @type  clsName:     str

            @param addr:        ROS name/address which the interface should
                                use.
            @type  addr:        str

            @raise:             rce.util.loader.ResourceNotFound
        """
        Interface.__init__(self, owner, status, uid)

        self._name = addr
        self._reactor = owner.reactor
예제 #3
0
파일: robot.py 프로젝트: PHPDOTSQL/rce
    def __init__(self, owner, uid, clsName, tag):
        """ Initialize the robot-side Interface.

            @param owner:       Namespace to which this interface belongs.
            @type  owner:       rce.robot.Robot

            @param uid:         Unique ID which is used to identify the
                                interface in the internal communication.
            @type  uid:         uuid.UUID

            @param clsName:     Message type/Service type consisting of the
                                package and the name of the message/service,
                                i.e. 'std_msgs/Int32'.
            @type  clsName:     str

            @param tag:         Unique ID which is used to identify the
                                interface in the external communication.
            @type  tag:         str
        """
        Interface.__init__(self, owner, uid, tag)

        self._clsName = clsName
예제 #4
0
    def __init__(self, owner, uid, clsName, tag):
        """ Initialize the robot-side Interface.

            @param owner:       Namespace to which this interface belongs.
            @type  owner:       rce.robot.Robot

            @param uid:         Unique ID which is used to identify the
                                interface in the internal communication.
            @type  uid:         uuid.UUID

            @param clsName:     Message type/Service type consisting of the
                                package and the name of the message/service,
                                i.e. 'std_msgs/Int32'.
            @type  clsName:     str

            @param tag:         Unique ID which is used to identify the
                                interface in the external communication.
            @type  tag:         str
        """
        Interface.__init__(self, owner, uid, tag)

        self._clsName = clsName
예제 #5
0
    def __init__(self, owner, uid, clsName, addr):
        """ Initialize the ROS-side Interface.

            @param owner:       Namespace to which this interface belongs.
            @type  owner:       rce.environment.Environment

            @param uid:         Unique ID which is used to identify the
                                interface in the internal communication.
            @type  uid:         uuid.UUID

            @param clsName:     Message type/Service type consisting of the
                                package and the name of the message/service,
                                i.e. 'std_msgs/Int32'.
            @type  clsName:     str

            @param addr:        ROS name/address which the interface should
                                use.
            @type  addr:        str

            @raise:             rce.util.loader.ResourceNotFound
        """
        Interface.__init__(self, owner, uid, addr)

        self._reactor = owner.reactor