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

Construct a BoundingBox2D message from individual coordinate and size ports. More...

#include <create_bounding_box_2d.hpp>

Inheritance diagram for moveit_pro::behaviors::CreateBoundingBox2D:
Collaboration diagram for moveit_pro::behaviors::CreateBoundingBox2D:

Public Member Functions

 CreateBoundingBox2D (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources)
 
BT::NodeStatus tick () override
 
- 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 ()
 
static BT::KeyValueVector metadata ()
 

Additional Inherited Members

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

Detailed Description

Construct a BoundingBox2D message from individual coordinate and size ports.

Creates a vision_msgs::msg::BoundingBox2D from upper-left corner coordinates and dimensions, suitable for wiring into behaviors that accept box prompts (e.g. GetMasks2DFromExemplar).

Data Port Name Port Type Object Type
x Input double
y Input double
width Input double
height Input double
bounding_box Output vision_msgs::msg::BoundingBox2D

Constructor & Destructor Documentation

◆ CreateBoundingBox2D()

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

Member Function Documentation

◆ metadata()

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

◆ providedPorts()

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

◆ tick()

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

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