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

Convert a flat vector of doubles into a vector of BoundingBox2D messages. More...

#include <create_bounding_boxes_2d.hpp>

Inheritance diagram for moveit_pro::behaviors::CreateBoundingBoxes2D:
Collaboration diagram for moveit_pro::behaviors::CreateBoundingBoxes2D:

Public Member Functions

 CreateBoundingBoxes2D (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

Convert a flat vector of doubles into a vector of BoundingBox2D messages.

Accepts a flat list of values representing one or more bounding boxes using upper-left corner coordinates and dimensions. Values are ordered as:

x1; y1; w1; h1; x2; y2; w2; h2; ...

where semicolons are the separator used in BT XML. The total number of values must be a multiple of 4. Each group of four values specifies a single box.

Data Port Name Port Type Object Type
values Input std::vector<double>
bounding_boxes Output std::vector<vision_msgs::msg::BoundingBox2D>

Constructor & Destructor Documentation

◆ CreateBoundingBoxes2D()

moveit_pro::behaviors::CreateBoundingBoxes2D::CreateBoundingBoxes2D ( 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::CreateBoundingBoxes2D::metadata ( )
static

◆ providedPorts()

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

◆ tick()

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

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