as2fm.scxml_converter.ascxml_extensions.ros_entries.scxml_ros_action_client.RosActionClient
- class as2fm.scxml_converter.ascxml_extensions.ros_entries.scxml_ros_action_client.RosActionClient(interface_name: str | AscxmlConfiguration, interface_type: str, interface_alias: str | None = None)
Bases:
RosDeclarationObject used in SCXML root to declare a new action client.
- __init__(interface_name: str | AscxmlConfiguration, interface_type: str, interface_alias: str | None = None)
Constructor of ROS declaration.
- Parameters:
interface_name – Comm. interface used by the declared ROS interface.
interface_type – ROS type used for communication.
interface_alias – Alias for the defined interface, used for ref. by the the handlers
Methods
__init__(interface_name, interface_type[, ...])Constructor of ROS declaration.
as_plain_scxml(struct_declarations, ...)Convert the object to its plain SCXML version.
as_xml()Convert the object to an XML element.
Check if the interface name is still undefined (i.e.
Ensure the type of the declared interface is a valid ROS type.
Check if the object is valid.
from_xml_tree(xml_tree, custom_data_types, ...)External interface to create a ScxmlBase object from an XML tree.
from_xml_tree_impl(xml_tree, custom_data_types)Create an instance of the class from an XML tree.
Which communication interface is used by the ROS declaration.
Get the container with custom data types.
Get the name of the ROS comm.
Get the ROS type used for communication.
get_name()Get the alias name of the ROS interface.
Getter for the node name related to the ROS declaration.
The xml tag related to the ROS declaration.
get_xml_arg_interface_name()Get the xml_element this object was made from.
is_plain_scxml([verbose])Check if the object is compatible with the plain SCXML standard.
preprocess_declaration(ascxml_declarations, ...)Update the content of this declaration if needed, using the other declarations.
set_custom_data_types(custom_data_types)Save container with custom data types.
set_node_name(node_name)Setter for the node name related to the ROS declaration.
set_xml_origin(xml_origin)Set the xml_element this object was made from.
- as_plain_scxml(struct_declarations, ascxml_declarations, **kwargs) List[ScxmlBase]
Convert the object to its plain SCXML version.
- Parameters:
struct_declarations – List of custom structures defined in the model
ascxml_declarations – Additional declarations, like ROS or BT specific ones
kwargs – Additional framework specific entries, e.g. the BT plugin ID.
- as_xml() _Element
Convert the object to an XML element.
- check_valid_instantiation() bool
Check if the interface name is still undefined (i.e. from BT ports).
- check_valid_interface_type() bool
Ensure the type of the declared interface is a valid ROS type.
- check_validity() bool
Check if the object is valid.
- classmethod from_xml_tree(xml_tree: _Element, custom_data_types: Dict[str, StructDefinition], **kwargs) Self
External interface to create a ScxmlBase object from an XML tree.
- classmethod from_xml_tree_impl(xml_tree: _Element, custom_data_types: Dict[str, StructDefinition]) Self
Create an instance of the class from an XML tree.
- static get_communication_interface() str
Which communication interface is used by the ROS declaration.
Expected values: “service”, “action”
- get_custom_data_types() Dict[str, StructDefinition]
Get the container with custom data types.
- get_interface_name() str
Get the name of the ROS comm. interface.
- get_interface_type() str
Get the ROS type used for communication.
- get_name() str
Get the alias name of the ROS interface.
- get_node_name() str
Getter for the node name related to the ROS declaration.
- static get_tag_name() str
The xml tag related to the ROS declaration.
- get_xml_origin() _Element | None
Get the xml_element this object was made from.
- is_plain_scxml(verbose: bool = False)
Check if the object is compatible with the plain SCXML standard.
- preprocess_declaration(ascxml_declarations: List[AscxmlDeclaration], **kwargs)
Update the content of this declaration if needed, using the other declarations.
- set_custom_data_types(custom_data_types: Dict[str, StructDefinition])
Save container with custom data types.
- set_node_name(node_name: str)
Setter for the node name related to the ROS declaration.
- set_xml_origin(xml_origin: _Element)
Set the xml_element this object was made from.