MoveIt Pro API
Core Behaviors for MoveIt Pro
Loading...
Searching...
No Matches
moveit_pro::behaviors::CreateTwistStamped Class Referencefinal

Create a geometry_msgs::msg::TwistStamped and writes it to the Blackboard. More...

#include <create_twist_stamped.hpp>

Inheritance diagram for moveit_pro::behaviors::CreateTwistStamped:
Collaboration diagram for moveit_pro::behaviors::CreateTwistStamped:

Public Member Functions

 CreateTwistStamped (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources)
 Construct a new CreateTwistStamped behavior.
 
BT::NodeStatus tick () override
 Contains the logic to create a valid geometry_msgs::msg::TwistStamped message.
 
- Public Member Functions inherited from moveit_pro::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.
 

Static Public Member Functions

static BT::PortsList providedPorts ()
 Returns list of ports for this behavior.
 
static BT::KeyValueVector metadata ()
 

Additional Inherited Members

- Protected Attributes inherited from moveit_pro::behaviors::SharedResourcesNode< BT::SyncActionNode >
std::shared_ptr< BehaviorContextshared_resources_
 

Detailed Description

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>
twist_stamped 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.

Constructor & Destructor Documentation

◆ CreateTwistStamped()

moveit_pro::behaviors::CreateTwistStamped::CreateTwistStamped ( const std::string &  name,
const BT::NodeConfiguration &  config,
const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &  shared_resources 
)

Construct a new CreateTwistStamped behavior.

Parameters
nameSee SharedResourcesNode
configSee SharedResourcesNode
shared_resourcesSee SharedResourcesNode

Member Function Documentation

◆ metadata()

BT::KeyValueVector moveit_pro::behaviors::CreateTwistStamped::metadata ( )
static

◆ providedPorts()

BT::PortsList moveit_pro::behaviors::CreateTwistStamped::providedPorts ( )
static

Returns list of ports for this behavior.

Returns
BT::PortsList

◆ tick()

BT::NodeStatus moveit_pro::behaviors::CreateTwistStamped::tick ( )
override

Contains the logic to create a valid geometry_msgs::msg::TwistStamped message.

Returns
BT::NodeStatus Returns success if successful, else failure.

The documentation for this class was generated from the following files: