Basic RT components and utilities
315.12.1
|
wrapper class of RT component More...
Public Member Functions | |
def | __init__ |
constructor | |
def | port |
get IOR of port | |
def | service |
get IOR of the service | |
def | setConfiguration |
update default configuration set | |
def | setProperty |
update value of the default configuration set | |
def | getProperty |
get value of the property in the default configuration set | |
def | start |
activate this component | |
def | stop |
deactivate this component | |
def | getLifeCycleState |
get life cycle state of the main execution context | |
def | isActive |
check the main execution context is active or not | |
def | isInactive |
check the main execution context is inactive or not | |
def | name |
get instance name | |
Public Attributes | |
ref | |
owned_ecs | |
ec | |
ports |
wrapper class of RT component
def python.rtm.RTcomponent.__init__ | ( | self, | |
ref | |||
) |
constructor
self | this object |
ref | IOR of RT component |
def python.rtm.RTcomponent.getLifeCycleState | ( | self, | |
ec = None |
|||
) |
get life cycle state of the main execution context
self | this object |
ec | execution context from which life cycle state is obtained |
References python.rtm.RTcomponent.ec, and python.rtm.RTcomponent.ref.
Referenced by python.rtm.RTcomponent.isActive(), and python.rtm.RTcomponent.isInactive().
def python.rtm.RTcomponent.getProperty | ( | self, | |
name | |||
) |
get value of the property in the default configuration set
self | this object |
name | name of the property |
def python.rtm.RTcomponent.isActive | ( | self, | |
ec = None |
|||
) |
check the main execution context is active or not
ec | execution context |
1 | this component is active |
0 | this component is not active |
References python.rtm.RTcomponent.getLifeCycleState().
Referenced by python.rtm.RTcomponent.start().
def python.rtm.RTcomponent.isInactive | ( | self, | |
ec = None |
|||
) |
check the main execution context is inactive or not
ec | execution context |
1 | this component is inactive |
0 | this component is not inactive |
References python.rtm.RTcomponent.getLifeCycleState().
Referenced by python.rtm.RTcomponent.stop().
def python.rtm.RTcomponent.name | ( | self | ) |
get instance name
Referenced by python.rtm.RTcomponent.start(), and python.rtm.RTcomponent.stop().
def python.rtm.RTcomponent.port | ( | self, | |
name | |||
) |
get IOR of port
self | this object |
name | name of the port |
References python::rtm.findPort(), python.rtm.RTcomponent.ports, and python.rtm.RTcomponent.ref.
def python.rtm.RTcomponent.service | ( | self, | |
instance_name, | |||
type_name = "" , |
|||
port_name = "" |
|||
) |
get IOR of the service
self | this object |
instance_name | instance name of the service |
type_name | type name of hte service |
port_name | port name which provides the service |
References python::rtm.findService().
def python.rtm.RTcomponent.setConfiguration | ( | self, | |
nvlist | |||
) |
update default configuration set
self | this object |
nvlist | list of pairs of name and value |
References python.rtm.RTcomponent.ref.
Referenced by python.rtm.RTcomponent.setProperty().
def python.rtm.RTcomponent.setProperty | ( | self, | |
name, | |||
value | |||
) |
update value of the default configuration set
self | this object |
name | name of the property |
value | new value of the property |
References python.rtm.RTcomponent.setConfiguration().
def python.rtm.RTcomponent.start | ( | self, | |
ec = None , |
|||
timeout = 3.0 |
|||
) |
activate this component
self | this object |
ec | execution context used to activate this component |
timeout | maximum duration to wait for activation |
References python.rtm.RTcomponent.ec, python.rtm.RTcomponent.isActive(), OpenHRP::RobotState.name, PointCloudTypes::PointField.name, python.rtm.RTcomponent.name(), and python.rtm.RTcomponent.ref.
def python.rtm.RTcomponent.stop | ( | self, | |
ec = None , |
|||
timeout = 3.0 |
|||
) |
deactivate this component
self | this object |
ec | execution context used to deactivate this component |
timeout | maximum duration to wait for deactivation |
References python.rtm.RTcomponent.ec, python.rtm.RTcomponent.isInactive(), OpenHRP::RobotState.name, PointCloudTypes::PointField.name, python.rtm.RTcomponent.name(), and python.rtm.RTcomponent.ref.
Referenced by python.rtm.RTcomponent.port().