Offers controller switching inside python on the fly. More...
Public Member Functions | |
def | __init__ |
def | carefree_switch |
Switches controller without having to specify the arm controller to take down. | |
def | list_loaded |
Lists the controllers which are currently loaded. | |
def | list_running |
Lists the controllers which are currently running. | |
def | list_stopped |
Lists the controllers which are currently stopped. | |
def | switch |
Switches controller. | |
Public Attributes | |
list_controllers_srv | |
load_controller | |
switch_controller_srv | |
unload_controller |
Offers controller switching inside python on the fly.
Definition at line 16 of file pr2_controller_switcher.py.
Definition at line 17 of file pr2_controller_switcher.py.
def hrl_pr2_arms.pr2_controller_switcher.ControllerSwitcher.carefree_switch | ( | self, | |
arm, | |||
new_controller, | |||
param_file = None , |
|||
reset = True |
|||
) |
Switches controller without having to specify the arm controller to take down.
arm | (r/l) |
new_controller | Name of new controller to load |
param_file | YAML file containing parameters for the new controller. |
reset | If true, the controller will bring down, unload and restart the controller using new parameters if currently running. If false, nothing will happen. |
Definition at line 72 of file pr2_controller_switcher.py.
Lists the controllers which are currently loaded.
Definition at line 138 of file pr2_controller_switcher.py.
Lists the controllers which are currently running.
Definition at line 116 of file pr2_controller_switcher.py.
Lists the controllers which are currently stopped.
Definition at line 127 of file pr2_controller_switcher.py.
def hrl_pr2_arms.pr2_controller_switcher.ControllerSwitcher.switch | ( | self, | |
old_controller, | |||
new_controller, | |||
param_file = None |
|||
) |
Switches controller.
old_controller | Name of controller to terminate. |
new_controller | Name of controller to activate. Can be same as old_controller if the object is to only change parameters. |
param_file | YAML file containing parameters for the new controller. |
Definition at line 45 of file pr2_controller_switcher.py.
Definition at line 17 of file pr2_controller_switcher.py.
Definition at line 17 of file pr2_controller_switcher.py.
Definition at line 17 of file pr2_controller_switcher.py.
Definition at line 17 of file pr2_controller_switcher.py.