MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
|
Create a geometry_msgs::msg::TwistStamped and writes it to the Blackboard. More...
#include <create_stamped_twist.hpp>
Public Member Functions | |
CreateStampedTwist (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_studio::behaviors::BehaviorContext > &shared_resources) | |
Construct a new CreateStampedTwist behavior. More... | |
BT::NodeStatus | tick () override |
Contains the logic to create a valid geometry_msgs::msg::TwistStamped message. More... | |
Public Member Functions inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode > | |
SharedResourcesNode (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) | |
Constructor for SharedResourcesNode. Called by BT::BehaviorTreeFactory when creating a new behavior tree containing this node. More... | |
Static Public Member Functions | |
static BT::PortsList | providedPorts () |
Returns list of ports for this behavior. More... | |
static BT::KeyValueVector | metadata () |
Additional Inherited Members | |
Protected Attributes inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode > | |
std::shared_ptr< BehaviorContext > | shared_resources_ |
Create a geometry_msgs::msg::TwistStamped and writes it to the Blackboard.
Data Port Name | Port Type | Object Type |
---|---|---|
reference_frame | input | std::string |
linear_velocity_xyz | input | std::vector<double> |
angular_velocity_xyz | input | std::vector<double> |
stamped_twist | output | geometry_msgs::msg::TwistStamped |
The Behavior checks to see if the input values linear_velocity_xyz
and angular_velocity_xyz
are of size 3.
moveit_studio::behaviors::CreateStampedTwist::CreateStampedTwist | ( | const std::string & | name, |
const BT::NodeConfiguration & | config, | ||
const std::shared_ptr< moveit_studio::behaviors::BehaviorContext > & | shared_resources | ||
) |
Construct a new CreateStampedTwist behavior.
name | See SharedResourcesNode |
config | See SharedResourcesNode |
shared_resources | See SharedResourcesNode |
|
static |
|
static |
Returns list of ports for this behavior.
|
override |
Contains the logic to create a valid geometry_msgs::msg::TwistStamped message.