scenario_execution_ros package
Subpackages
- scenario_execution_ros.actions package
- Submodules
- scenario_execution_ros.actions.assert_lifecycle_state module
- scenario_execution_ros.actions.assert_tf_moving module
- scenario_execution_ros.actions.assert_topic_latency module
- scenario_execution_ros.actions.common module
- scenario_execution_ros.actions.conversions module
- scenario_execution_ros.actions.odometry_distance_traveled module
- scenario_execution_ros.actions.py_trees_ros_common module
- scenario_execution_ros.actions.ros_action_call module
- scenario_execution_ros.actions.ros_bag_play module
- scenario_execution_ros.actions.ros_bag_record module
- scenario_execution_ros.actions.ros_launch module
- scenario_execution_ros.actions.ros_log_check module
- scenario_execution_ros.actions.ros_service_call module
- scenario_execution_ros.actions.ros_set_node_parameter module
- scenario_execution_ros.actions.ros_topic_check_data module
- scenario_execution_ros.actions.ros_topic_check_data_external module
- scenario_execution_ros.actions.ros_topic_monitor module
- scenario_execution_ros.actions.ros_topic_publish module
- scenario_execution_ros.actions.ros_topic_wait_for_data module
- scenario_execution_ros.actions.ros_topic_wait_for_topics module
- scenario_execution_ros.actions.ros_wait_for_nodes module
- scenario_execution_ros.actions.tf_close_to module
- Module contents
- Submodules
- scenario_execution_ros.external_methods package
Submodules
Module contents
Main entry for scenario execution
- class scenario_execution_ros.ROSScenarioExecution(*args: Any, **kwargs: Any)
Bases:
ScenarioExecution
Class for scenario execution using ROS2 as middleware
- on_scenario_shutdown(result, failure_message='', failure_output='')
- post_setup()
- run() bool
- setup_behaviour_tree(tree)
Setup the behaviour tree Using py_trees_ros to get a node handle on ROS2 and tick in syn with ROS2
- Args:
tree [py_trees.behaviour.Behaviour]: root of the behaviour tree
- return:
scenario_execution_py_trees_ros.trees.BehaviourTreeKwargs
- shutdown()
- class scenario_execution_ros.RosLogger(*args: Any, **kwargs: Any)
Bases:
BaseLogger
Class for logger for ROS scenario execution
- Args:
name [str]: name of the logger
- debug(msg: str)
Log debug info in ROS2
- Args:
msg [str]: msg to print
- error(msg: str)
Log error in ROS2
- Args:
msg [str]: msg to print
- info(msg: str)
Log info in ROS2
- Args:
msg [str]: msg to print
- warning(msg: str)
Log warning in ROS2
- Args:
msg [str]: msg to print