as2fm.scxml_converter.scxml_entries.bt_utils

Collection of SCXML utilities related to BT functionalities.

Functions

generate_bt_blackboard_set(bt_bb_ref_name)

Generate the name of the evnt setting a specific Blackboard variable.

generate_bt_halt_event(instance_id)

Generate the BT halt event name for a given BT node instance.

generate_bt_halt_response_event(instance_id)

Generate the BT response event name for a given BT node instance.

generate_bt_tick_event(instance_id)

Generate the BT tick event name for a given BT node instance.

generate_bt_tick_response_event(instance_id)

Generate the BT response event name for a given BT node instance.

get_blackboard_variable_name(port_value)

get_input_variable_as_scxml_expression(...)

Given an input variable it generates an expression as event data or single value.

is_blackboard_reference(port_value)

Check if a port value is a reference to a Blackboard variable.

is_bt_halt_event(event_name)

Check if the event is used for halting a BT node.

is_bt_halt_response_event(event_name)

Check if the event name is for a BT node's halt response.

is_bt_tick_event(event_name)

Check is the event is used for ticking a BT node.

is_bt_tick_response_event(event_name)

Check if the event name is for BT node's responses(success, failure, running).

is_removed_bt_event(event_name)

Given an event name, returns whether it is related to a BT event or not.

process_bt_child_seq_id(scxml_type, child_seq_id)

Convert the child sequence ID to int or string depending on the content.

Classes

BtPortsHandler()

Collector for declared BT ports and their assigned value.

BtResponse(value[, names, module, qualname, ...])

Enumeration of possible BT responses.