ros2_control - rolling
Loading...
Searching...
No Matches
rqt_controller_manager.controller_manager.ControllerManager Class Reference
Inheritance diagram for rqt_controller_manager.controller_manager.ControllerManager:
Collaboration diagram for rqt_controller_manager.controller_manager.ControllerManager:

Public Member Functions

 __init__ (self, context)
 shutdown_plugin (self)
 save_settings (self, plugin_settings, instance_settings)
 restore_settings (self, plugin_settings, instance_settings)

Protected Member Functions

 _update_cm_list (self)
 _on_cm_change (self, cm_name)
 _deselect_cm (self, error)
 _update_controllers (self)
 _list_controllers (self)
 _show_controllers (self)
 _on_ctrl_menu (self, pos)
 _on_ctrl_info (self, index)
 _on_ctrl_header_menu (self, pos)
 _update_hw_components (self)
 _list_hw_components (self)
 _show_hw_components (self)
 _on_hw_menu (self, pos)
 _on_hw_info (self, index)
 _on_hw_header_menu (self, pos)
 _activate_controller (self, name)
 _deactivate_controller (self, name)
 _switch_controllers (self, activate, deactivate)
 _set_active_hw_component (self, name)
 _set_inactive_hw_component (self, name)
 _set_unconfigured_hw_component (self, name)
 _set_state_hw_component (self, name, state)

Protected Attributes

 _widget = QWidget()
 _popup_widget = QWidget()
str _cm_name = ""
list _controllers = []
list _hw_components = []
 _ctrl_table_model = None
 _hw_table_model = None
 _node = context.node
dict _icons
 _on_ctrl_menu
 _on_ctrl_info
 _on_ctrl_header_menu
 _on_hw_menu
 _on_hw_info
 _on_hw_header_menu
 _update_cm_list_timer = QTimer(self)
 _update_cm_list
 _update_ctrl_list_timer = QTimer(self)
 _update_controllers
 _update_hw_components_list_timer = QTimer(self)
 _update_hw_components
 _on_cm_change

Static Protected Attributes

int _cm_update_freq = 1
float _service_timeout = 2.0 / _cm_update_freq
float _switch_timeout = 0.3

Detailed Description

Graphical frontend for interacting with the controller manager.

Member Function Documentation

◆ _deselect_cm()

rqt_controller_manager.controller_manager.ControllerManager._deselect_cm ( self,
error )
protected
Deselect the controller manager, e.g., because it is not reachable anymore.

◆ _list_controllers()

rqt_controller_manager.controller_manager.ControllerManager._list_controllers ( self)
protected
List the controllers associated to a controller manager node.

@return List of controllers associated to a controller manager
node. Contains both stopped/running controllers, as returned by
the C{list_controllers} service, plus uninitialized controllers with
returned by the C{list_parameters} service..
@rtype [str]

◆ _list_hw_components()

rqt_controller_manager.controller_manager.ControllerManager._list_hw_components ( self)
protected
List the hw_components associated to a controller manager node.

@return List of hw_components associated to a controller manager
node. Contains both stopped/running hw_components, as returned by
the C{list_hardware_components} service
@rtype [str]

Member Data Documentation

◆ _icons

dict rqt_controller_manager.controller_manager.ControllerManager._icons
protected
Initial value:
= {
"active": QIcon(f"{path}/resource/led_green.png"),
"inactive": QIcon(f"{path}/resource/led_cyan.png"),
"unconfigured": QIcon(f"{path}/resource/led_yellow.png"),
"unloaded": QIcon(f"{path}/resource/led_off.png"),
}

The documentation for this class was generated from the following file: