Undocumented
Class |
|
Convenience functor for querying loaded controller data. |
Class |
|
Convenience functor for querying the list of active controller managers. |
Function | filter |
Filter controller state list by controller hardware interface. |
Function | filter |
Filter controller state list by controller name. |
Function | filter |
Filter controller state list by claimed resources. |
Function | filter |
Filter controller state list by controller state. |
Function | filter |
Filter controller state list by controller type. |
Function | get |
Get list of active controller manager namespaces. |
Function | get |
Get list of ROS parameter names that potentially represent a controller configuration. |
Function | is |
Check if the input namespace exposes the controller_manager ROS interface. |
Variable | cm |
Undocumented |
Function | _filter |
Filter input list by the value of its elements' attributes. |
Function | _sloppy |
Get list of I{potential} active controller manager namespaces. |
Function | _srv |
Check if a ROS service of specific name and type exists. |
Constant | _LIST |
Undocumented |
Constant | _LIST |
Undocumented |
Constant | _LIST |
Undocumented |
Constant | _LIST |
Undocumented |
Constant | _LOAD |
Undocumented |
Constant | _LOAD |
Undocumented |
Constant | _RELOAD |
Undocumented |
Constant | _RELOAD |
Undocumented |
Constant | _SWITCH |
Undocumented |
Constant | _SWITCH |
Undocumented |
Constant | _UNLOAD |
Undocumented |
Constant | _UNLOAD |
Undocumented |
Filter controller state list by controller hardware interface.
@param ctrl_list: Controller state list @type ctrl_list: [controller_manager_msgs/ControllerState] @param hardware_interface: Controller hardware interface @type hardware_interface: str @param match_substring: Set to True to allow substring matching @type match_substring: bool @return: Controllers matching the specified hardware interface @rtype: [controller_manager_msgs/ControllerState]
Filter controller state list by controller name.
@param ctrl_list: Controller state list @type ctrl_list: [controller_manager_msgs/ControllerState] @param ctrl_name: Controller name @type ctrl_name: str @param match_substring: Set to True to allow substring matching @type match_substring: bool @return: Controllers matching the specified name @rtype: [controller_manager_msgs/ControllerState]
Filter controller state list by claimed resources.
@param ctrl_list: Controller state list @type ctrl_list: [controller_manager_msgs/ControllerState] @param resources: Controller resources @type resources: [str] @param hardware_interface Controller hardware interface where to look for resources. If specified, the requested resources will only be searched for in this interface. If unspecified, all controller hardware interfaces will be searched for; i.e., if a controller claims resources from multiple interfaces, the method will succeed if _any_ interface contains the requested resources (any or all, depending on the value of C{match_any}). Specifying this parameter allows finer control over determining which interfaces claim specific resources. @param match_any: If set to False, all elements in C{resources} must be claimed by the interface specified in C{hardware_interface} (or _any_ interface, if C{hardware_interface} is unspecified) for a positive match. Note that a controller's resources can contain additional entries than those in C{resources}). If set to True, at least one element in C{resources} must be claimed by the interface specified in C{hardware_interface} (or _any_ interface, if C{hardware_interface} is unspecified) for a positive match. @type match_any: bool @return: Controllers matching the specified hardware interface @rtype: [controller_manager_msgs/ControllerState]
Filter controller state list by controller state.
@param ctrl_list: Controller state list @type ctrl_list: [controller_manager_msgs/ControllerState] @param ctrl_state: Controller state @type ctrl_state: str @param match_substring: Set to True to allow substring matching @type match_substring: bool @return: Controllers matching the specified state @rtype: [controller_manager_msgs/ControllerState]
Filter controller state list by controller type.
@param ctrl_list: Controller state list @type ctrl_list: [controller_manager_msgs/ControllerState] @param ctrl_type: Controller type @type ctrl_type: str @param match_substring: Set to True to allow substring matching @type match_substring: bool @return: Controllers matching the specified type @rtype: [controller_manager_msgs/ControllerState]
Get list of active controller manager namespaces.
@param namespace: Namespace where to look for controller managers. @type namespace: str @param initial_guess: Initial guess of the active controller managers. Typically c{initial_guess} is the output of a previous call to this method, and is useful when periodically checking for changes in the list of active controller managers. Elements in this list will go through a lazy validity check (as opposed to a full name+type API verification), so providing a good estimate can significantly reduce the number of ROS master queries incurred by this method. @type initial_guess: [str] @return: Sorted list of active controller manager namespaces. @rtype: [str]
Get list of ROS parameter names that potentially represent a controller configuration.
- Example usage:
Assume the following parameters exist in the ROS parameter: server:
- C{/foo/type}
- C{/xxx/type/xxx}
- C{/ns/bar/type}
- C{/ns/yyy/type/yyy}
The potential controllers found by this method are:
>>> names = get_rosparam_controller_names() # returns ['foo'] >>> names_ns = get_rosparam_controller_names('/ns') # returns ['bar']
@param namespace: Namespace where to look for controllers. @type namespace: str @return: Sorted list of ROS parameter names. @rtype: [str]
Check if the input namespace exposes the controller_manager ROS interface.
This method has the overhead of several ROS master queries (one per ROS API member).
@param namespace: Namespace to check @type namespace: str @return: True if namespace exposes the controller_manager ROS interface @rtype: bool
Get list of I{potential} active controller manager namespaces.
The method name is prepended with I{sloppy}, and the returned list contains I{potential} active controller managers because it does not perform a thorough check of the expected ROS API. It rather tries to minimize the number of ROS master queries.
This method has the overhead of one ROS master query.
@param namespace: Namespace where to look for controller managers. @type namespace: str @return: List of I{potential} active controller manager namespaces. @rtype: [str]
Check if a ROS service of specific name and type exists.
This method has the overhead of one ROS master query.
@param srv_name: Fully qualified service name @type srv_name: str @param srv_type: Service type @type srv_type: str