Skip to main content

GetMask2DFromRegion Class

Converts a user-selected 2D region into a Mask2D that the 3D-lifting Behaviors consume. More...

Declaration

class moveit_pro::behaviors::GetMask2DFromRegion { ... }

Included Headers

#include <get_mask2d_from_region.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

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

Public Constructors Index

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

Public Member Functions Index

BT::NodeStatustick () override

Public Static Functions Index

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

Description

Converts a user-selected 2D region into a Mask2D that the 3D-lifting Behaviors consume.

Thin BT wrapper over regionToMask2D(): reads the region polygon (see GetRegionFromUser), rasterizes it, and writes a single-element masks2d vector for GetMasks3DFromMasks2D (which projects it onto the camera point cloud to recover the 3D region).

Data Port NamePort TypeObject Type
regioninputgeometry_msgs::msg::PolygonStamped
camera_infoinputsensor_msgs::msg::CameraInfo
masks2doutputstd::vector<moveit_studio_vision_msgs::msg::Mask2D>
Parameters
name

The name of this Behavior.

config

The configuration options for this Behavior.

shared_resources

The shared resources common to all Behaviors.

Definition at line 61 of file get_mask2d_from_region.hpp.

Public Constructors

GetMask2DFromRegion()

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

Declaration at line 64 of file get_mask2d_from_region.hpp, definition at line 118 of file get_mask2d_from_region.cpp.

Public Member Functions

tick()

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

Declaration at line 71 of file get_mask2d_from_region.hpp, definition at line 142 of file get_mask2d_from_region.cpp.

Public Static Functions

metadata()

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

Declaration at line 69 of file get_mask2d_from_region.hpp, definition at line 136 of file get_mask2d_from_region.cpp.

providedPorts()

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

Declaration at line 67 of file get_mask2d_from_region.hpp, definition at line 124 of file get_mask2d_from_region.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.