MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
|
#include <test_behavior.hpp>
Public Member Functions | |
void | initBehavior (const std::string &name, PortSetterMapGenerator input_port_setter_generator, PortSetterMapGenerator output_port_setter_generator, std::unique_ptr< ClientInterfaceT > &&client_interface) |
Initializes the Behavior under test with a client interface. More... | |
Public Member Functions inherited from moveit_studio::test_utils::WithBehavior< BehaviorT > | |
void | initBehavior (const std::string &name, PortSetterMapGenerator input_port_setter_generator, PortSetterMapGenerator output_port_setter_generator) |
Initializes the Behavior under test. More... | |
BehaviorT & | behavior () |
BT::NodeConfiguration & | config () |
BT::Blackboard & | blackboard () |
MockLogger & | mockLogger () |
behaviors::BehaviorContext & | behaviorContext () |
std::shared_ptr< behaviors::BehaviorContext > | behaviorContextSharedPtr () |
rclcpp::Node & | behaviorNode () |
std::shared_ptr< rclcpp::Node > | behaviorNodePtr () |
void | setTestDataDirectories (const std::vector< std::string > &objective_library_directories) |
Configure the directories that a test will read data from and/or write data to. More... | |
void | setTransform (const geometry_msgs::msg::TransformStamped &transform_msg) |
Makes a transform available in the shared transform buffer. More... | |
void | setTransform (const builtin_interfaces::msg::Time &stamp, std::string_view parent_frame, std::string_view child_frame, const Eigen::Isometry3d &transform) |
Makes a transform available in the shared transform buffer. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from moveit_studio::test_utils::WithBehavior< BehaviorT > | |
void | initBehaviorCommon (const std::string &name, PortSetterMapGenerator input_port_setter_generator, PortSetterMapGenerator output_port_setter_generator) |
std::unique_ptr< BehaviorT > & | behaviorPtr () |
void moveit_studio::test_utils::WithActionBehavior< BehaviorT, ClientInterfaceT >::initBehavior | ( | const std::string & | name, |
PortSetterMapGenerator | input_port_setter_generator, | ||
PortSetterMapGenerator | output_port_setter_generator, | ||
std::unique_ptr< ClientInterfaceT > && | client_interface | ||
) |
Initializes the Behavior under test with a client interface.
Call this function in your fixture's constructor, SetUp() or any of its setUp* variations.
name | The name of the Behavior. |
input_port_setter_generator | A port setter map generator defining the expected input ports. |
output_port_setter_generator | A port setter map generator defining the expected output ports. |
client_interface | Interface to an action client. |
WrongBehaviorPortsException | if the Behavior does not define exactly the expected ports. |