ConfigurationExecutor

class rosa_execute.configuration_executor.ConfigurationExecutor(node_name, **kwargs)

ConfigurationExecutor.

Create a lifecycle node.

See rclpy.lifecycle.LifecycleNodeMixin.__init__() and rclpy.node.Node() for the documentation of each parameter.

Methods

__init__(node_name, **kwargs)

Create a lifecycle node.

activate_components(**kwargs)

activate_lc_component(component)

call_service(**kwargs)

change_lc_node_state(**kwargs)

deactivate_components(**kwargs)

deactivate_lc_component(component)

event_cb(**kwargs)

execute(**kwargs)

get_lc_node_state(**kwargs)

kill_all_components()

kill_component(component)

kill_component_component_process(...)

on_activate(state)

Handle an activating transition.

on_cleanup(state)

Handle a cleaning up transition.

on_configure(state)

Handle a configuring transition.

on_deactivate(state)

Handle a deactivating transition.

on_shutdown(state)

Handle a shutting down transition.

perform_parameter_adaptation(**kwargs)

perform_reconfiguration_plan(**kwargs)

run_process(cmd, _func, _dict)

set_component_active(**kwargs)

start_component(component)

start_ros_launchfile(launch_dict, **kwargs)

start_ros_node(node_dict)

update_component_activation_attribute(component)

Attributes

__init__(node_name, **kwargs)

Create a lifecycle node.

See rclpy.lifecycle.LifecycleNodeMixin.__init__() and rclpy.node.Node() for the documentation of each parameter.

activate_components(**kwargs)
activate_lc_component(component)
call_service(**kwargs)
change_lc_node_state(**kwargs)
deactivate_components(**kwargs)
deactivate_lc_component(component)
event_cb(**kwargs)
execute(**kwargs)
get_lc_node_state(**kwargs)
kill_all_components()
kill_component(component)
kill_component_component_process(component_process)
on_activate(state)

Handle an activating transition.

This is the default on_activate() callback. It will call all on_activate() callbacks of managed entities, giving up at the first entity that returns TransitionCallbackReturn.FAILURE or TransitionCallbackReturn.ERROR.

It’s possible to override this callback if the default behavior is not desired. If you only want to extend what this callback does, make sure to call super().on_activate() in derived classes.

Return type:

TransitionCallbackReturnType

on_cleanup(state)

Handle a cleaning up transition.

This is the default on_cleanup() callback. It will call all on_cleanup() callbacks of managed entities, giving up at the first entity that returns TransitionCallbackReturn.FAILURE or TransitionCallbackReturn.ERROR.

It’s possible to override this callback if the default behavior is not desired. If you only want to extend what this callback does, make sure to call super().on_cleanup() in derived classes.

Return type:

TransitionCallbackReturnType

on_configure(state)

Handle a configuring transition.

This is the default on_configure() callback. It will call all on_configure() callbacks of managed entities, giving up at the first entity that returns TransitionCallbackReturn.FAILURE or TransitionCallbackReturn.ERROR.

It’s possible to override this callback if the default behavior is not desired. If you only want to extend what this callback does, make sure to call super().on_configure() in derived classes.

Return type:

TransitionCallbackReturnType

on_deactivate(state)

Handle a deactivating transition.

This is the default on_deactivate() callback. It will call all on_deactivate() callbacks of managed entities, giving up at the first entity that returns TransitionCallbackReturn.FAILURE or TransitionCallbackReturn.ERROR.

It’s possible to override this callback if the default behavior is not desired. If you only want to extend what this callback does, make sure to call super().on_deactivate() in derived classes.

Return type:

TransitionCallbackReturnType

on_shutdown(state)

Handle a shutting down transition.

This is the default on_shutdown() callback. It will call all on_shutdown() callbacks of managed entities, giving up at the first entity that returns TransitionCallbackReturn.FAILURE or TransitionCallbackReturn.ERROR.

It’s possible to override this callback if the default behavior is not desired. If you only want to extend what this callback does, make sure to call super().on_shutdown() in derived classes.

Return type:

TransitionCallbackReturnType

perform_parameter_adaptation(**kwargs)
perform_reconfiguration_plan(**kwargs)
run_process(cmd, _func, _dict)
set_component_active(**kwargs)
start_component(component)
start_ros_launchfile(launch_dict, **kwargs)
start_ros_node(node_dict)
update_component_activation_attribute(component)