as2fm.scxml_converter.scxml_entries.scxml_ros_action_client.RosActionClient
- class as2fm.scxml_converter.scxml_entries.scxml_ros_action_client.RosActionClient(interface_name: str | BtGetValueInputPort, interface_type: str, interface_alias: str | None = None)
Bases:
RosDeclaration
Object used in SCXML root to declare a new action client.
- __init__(interface_name: str | BtGetValueInputPort, 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.
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.
check_valid_interface_type
()Check if the object is valid.
from_xml_tree
(xml_tree)Create an instance of the class from an XML tree.
get_body
()Get the body of the object.
Which communication interface is used by the ROS declaration.
Get the data model of the object.
get_id
()Get the ID of the object.
Get the name of the ROS comm.
Get the ROS type used for communication.
get_name
()Get the alias name of the ROS interface.
Get the states of the object.
The xml tag related to the ROS declaration.
get_xml_arg_interface_name
()update_bt_ports_values
(bt_ports_handler)Update the values of potential entries making use of BT ports.
- 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_validity() bool
Check if the object is valid.
- classmethod from_xml_tree(xml_tree: Element) RosDeclaration
Create an instance of the class from an XML tree.
- get_body()
Get the body of the object.
- static get_communication_interface() str
Which communication interface is used by the ROS declaration.
Expected values: “service”, “action”
- get_data_model()
Get the data model of the object.
- get_id() str
Get the ID of the object.
- 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_states()
Get the states of the object.
- static get_tag_name() str
The xml tag related to the ROS declaration.
- update_bt_ports_values(bt_ports_handler: BtPortsHandler) None
Update the values of potential entries making use of BT ports.