RosaKB

class rosa_kb.rosa_kb_typedb.RosaKB(node_name, **kwargs)

ROS lifecycle node implementing ROSA’s KB.

Create RosaKB node, inherits from ROSTypeDBInterface.

Methods

__init__(node_name, **kwargs)

Create RosaKB node, inherits from ROSTypeDBInterface.

action_exists_cb(**kwargs)

action_insert_cb(**kwargs)

action_request_cb(**kwargs)

action_selectable_cb(**kwargs)

component_adaptable_cb(**kwargs)

component_configuration_priority_cb(**kwargs)

component_insert_cb(**kwargs)

component_process_get_active_cb(**kwargs)

component_process_insert_cb(**kwargs)

component_process_set_end_cb(**kwargs)

diagnostics_callback(**kwargs)

function_adaptable_cb(**kwargs)

function_design_insert_cb(**kwargs)

function_design_priority_cb(**kwargs)

function_insert_cb(**kwargs)

functional_requirement_insert_cb(**kwargs)

get_component_active_cb(**kwargs)

get_component_all_attributes(component)

Get all attributes of a component.

get_component_parameters_cb(**kwargs)

get_latest_reconfiguration_plan_cb(**kwargs)

get_reconfiguration_plan_cb(**kwargs)

on_activate(state)

Handle an activating transition.

on_cleanup(state)

Cleanup RosaKB when the cleanup transition is called.

on_configure(state)

Configure RosaKB when the configure transition is called.

on_deactivate(state)

Handle a deactivating transition.

reconfig_plan_dict_to_ros_msg(reconfig_plan_dict)

Convert reconfig plan to rosa_msgs.msg.ReconfigurationPlan.

select_configuration_cb(**kwargs)

selectable_c_config_cb(**kwargs)

selectable_fd_cb(**kwargs)

set_component_active_cb(**kwargs)

set_reconfiguration_plan_result_service_cb(...)

update_component_status(**kwargs)

update_measurement(**kwargs)

Attributes

__init__(node_name, **kwargs)

Create RosaKB node, inherits from ROSTypeDBInterface.

action_exists_cb(**kwargs)
action_insert_cb(**kwargs)
action_request_cb(**kwargs)
action_selectable_cb(**kwargs)
component_adaptable_cb(**kwargs)
component_configuration_priority_cb(**kwargs)
component_insert_cb(**kwargs)
component_process_get_active_cb(**kwargs)
component_process_insert_cb(**kwargs)
component_process_set_end_cb(**kwargs)
diagnostics_callback(**kwargs)
function_adaptable_cb(**kwargs)
function_design_insert_cb(**kwargs)
function_design_priority_cb(**kwargs)
function_insert_cb(**kwargs)
functional_requirement_insert_cb(**kwargs)
get_component_active_cb(**kwargs)
get_component_all_attributes(component)

Get all attributes of a component.

Parameters:

component (str) – component name

Return type:

Component

Returns:

rosa_msgs.msg.Component msg with all attributes set

get_component_parameters_cb(**kwargs)
get_latest_reconfiguration_plan_cb(**kwargs)
get_reconfiguration_plan_cb(**kwargs)
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)

Cleanup RosaKB when the cleanup transition is called.

Return type:

TransitionCallbackReturnType

Returns:

transition result

on_configure(state)

Configure RosaKB when the configure transition is called.

Return type:

TransitionCallbackReturnType

Returns:

transition result

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

reconfig_plan_dict_to_ros_msg(reconfig_plan_dict)

Convert reconfig plan to rosa_msgs.msg.ReconfigurationPlan.

Parameters:

reconfig_plan_dict (ReconfigPlanDict) – reconfig plan dict

Return type:

ReconfigurationPlan

Returns:

reconfig plan rosa msg

select_configuration_cb(**kwargs)
selectable_c_config_cb(**kwargs)
selectable_fd_cb(**kwargs)
set_component_active_cb(**kwargs)
set_reconfiguration_plan_result_service_cb(**kwargs)
update_component_status(**kwargs)
update_measurement(**kwargs)