Skip to main content

CreateBoundingBoxFromOffset Class

Given an exemplar image and optional padding, produce a single BoundingBox2D covering the (optionally padded) exemplar image dimensions. More...

Declaration

class moveit_pro::behaviors::CreateBoundingBoxFromOffset { ... }

Included Headers

#include <create_bounding_box_from_offset.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More...

Public Constructors Index

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

Public Member Functions Index

BT::NodeStatustick () override

Public Static Functions Index

static BT::PortsListprovidedPorts ()
static BT::KeyValueVectormetadata ()

Description

Given an exemplar image and optional padding, produce a single BoundingBox2D covering the (optionally padded) exemplar image dimensions.

The output bounding box covers the full exemplar image with padding inset from each edge. The box is in exemplar image pixel coordinates (center + size format), ready to be passed to GetMasks2DFromExemplar via the exemplar_bboxes port.

Data Port NamePort TypeObject Type
exemplar_imageInputsensor_msgs::msg::Image
padding_percentInputdouble (optional, default 0.05)
bounding_boxesOutputstd::vector<vision_msgs::msg::BoundingBox2D>

Definition at line 31 of file create_bounding_box_from_offset.hpp.

Public Constructors

CreateBoundingBoxFromOffset()

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

Declaration at line 34 of file create_bounding_box_from_offset.hpp, definition at line 32 of file create_bounding_box_from_offset.cpp.

Public Member Functions

tick()

BT::NodeStatus moveit_pro::behaviors::CreateBoundingBoxFromOffset::tick ()

Declaration at line 41 of file create_bounding_box_from_offset.hpp, definition at line 52 of file create_bounding_box_from_offset.cpp.

Public Static Functions

metadata()

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

Declaration at line 39 of file create_bounding_box_from_offset.hpp, definition at line 105 of file create_bounding_box_from_offset.cpp.

providedPorts()

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

Declaration at line 37 of file create_bounding_box_from_offset.hpp, definition at line 39 of file create_bounding_box_from_offset.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.