as2fm.scxml_converter.scxml_entries.ros_utils

Collection of SCXML utilities related to ROS functionalities.

Functions

check_all_fields_known(ros_fields, field_types)

Check that all fields from ros_fields are in field_types, and that no field is missing.

extract_params_from_ros_type(ros_interface_type)

Extract the data fields of a ROS message type as pairs of name and type objects.

generate_action_feedback_event(action_name)

Generate the name of the event that sends a feedback from the action server.

generate_action_feedback_handle_event(...)

Generate the name of the event that handles a feedback in an action client.

generate_action_goal_accepted_event(action_name)

Generate the name of the event sent from the server in case of goal acceptance.

generate_action_goal_handle_accepted_event(...)

Generate the name of the event that reports goal acceptance to a client.

generate_action_goal_handle_event(action_name)

Generate the name of the event that triggers an action goal handling in the server.

generate_action_goal_handle_rejected_event(...)

Generate the name of the event that reports goal rejection to a client.

generate_action_goal_rejected_event(action_name)

Generate the name of the event sent from the server in case of goal rejection.

generate_action_goal_req_event(action_name, ...)

Generate the name of the event that sends an action goal from a client to the server.

generate_action_result_event(action_name)

Generate the name of the event that sends a result from the action server.

generate_action_result_handle_event(...)

Generate the name of the event that handles a result in an action client.

generate_action_thread_execution_start_event(...)

Generate the name of the event that triggers the start of an action thread execution.

generate_action_thread_free_event(action_name)

Generate the name of the event sent when an action thread becomes free.

generate_rate_timer_event(timer_name)

Generate the name of the event triggered by a rate timer.

generate_srv_request_event(service_name, ...)

Generate the name of the event that triggers a service request.

generate_srv_response_event(service_name, ...)

Generate the name of the event that provides the service response.

generate_srv_server_request_event(service_name)

Generate the name of the event that makes a service server start processing a request.

generate_srv_server_response_event(service_name)

Generate the name of the event that makes a service server send a response.

generate_topic_event(topic_name)

Generate the name of the event that triggers a message reception from a topic.

get_action_goal_id_definition()

Provide the definition of the goal_id field in ROS actions.

get_action_type_params(action_definition)

Get the fields of an action goal, feedback and result as pairs of name and type objects.

get_srv_type_params(service_definition)

Get the fields of a service request and response as pairs of name and type objects.

is_action_type_known(action_definition)

Check if python can import the provided action definition.

is_msg_type_known(topic_definition)

Check if python can import the provided topic definition.

is_ros_type_known(type_definition, ros_interface)

Check if python can import the provided type definition.

is_srv_type_known(service_definition)

Check if python can import the provided service definition.

sanitize_ros_interface_name(interface_name)

Replace slashes in a ROS interface name.

Classes

ScxmlRosDeclarationsContainer(automaton_name)

Object that contains a description of the ROS declarations in the SCXML root.