Skip to main content

GetMask2DProperties Class

Extract bounding box dimensions and area from a single Mask2D message. More...

Declaration

class moveit_pro::behaviors::GetMask2DProperties { ... }

Included Headers

#include <get_mask2d_properties.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

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

Public Constructors Index

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

Extract bounding box dimensions and area from a single Mask2D message.

Analyzes a 2D mask to compute:

  • Bounding box width (pixels)
  • Bounding box height (pixels)
  • Total mask area (count of non-zero pixels)
Data Port NamePort TypeObject Type
maskInputmoveit_studio_vision_msgs::msg::Mask2D
widthOutputint
heightOutputint
areaOutputint

Definition at line 32 of file get_mask2d_properties.hpp.

Public Constructors

GetMask2DProperties()

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

Declaration at line 35 of file get_mask2d_properties.hpp, definition at line 29 of file get_mask2d_properties.cpp.

Public Member Functions

tick()

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

Declaration at line 42 of file get_mask2d_properties.hpp, definition at line 45 of file get_mask2d_properties.cpp.

Public Static Functions

metadata()

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

Declaration at line 40 of file get_mask2d_properties.hpp, definition at line 78 of file get_mask2d_properties.cpp.

providedPorts()

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

Declaration at line 38 of file get_mask2d_properties.hpp, definition at line 35 of file get_mask2d_properties.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.