Skip to main content

TrimPointcloudSurface Class

Trims a point cloud to contain only points within a quadrilateral boundary defined by 4 waypoints. More...

Declaration

class moveit_pro::behaviors::TrimPointcloudSurface { ... }

Included Headers

#include <trim_pointcloud_surface.hpp>

Base class

classBT::SyncActionNode

Public Constructors Index

TrimPointcloudSurface (const std::string &name, const BT::NodeConfiguration &config)

Constructor. More...

Public Member Functions Index

BT::NodeStatustick () override

Execute the behavior: trim the point cloud to the quadrilateral boundary. More...

Public Static Functions Index

static BT::PortsListprovidedPorts ()

Declare input and output ports. More...

static BT::KeyValueVectormetadata ()

Provide metadata for the MoveIt Studio Developer Tool UI. More...

Description

Trims a point cloud to contain only points within a quadrilateral boundary defined by 4 waypoints.

The behavior fits a plane to the 4 boundary waypoints using SVD, projects both the waypoints and all cloud points onto that plane, and retains only the points whose 2D projections fall inside the resulting quadrilateral polygon.

Data Port NamePort TypeObject Type
waypointsinputstd::vector<geometry_msgs::msg::PoseStamped>
point_cloudinputsensor_msgs::msg::PointCloud2
trimmed_point_cloudoutputsensor_msgs::msg::PointCloud2

Definition at line 30 of file trim_pointcloud_surface.hpp.

Public Constructors

TrimPointcloudSurface()

moveit_pro::behaviors::TrimPointcloudSurface::TrimPointcloudSurface (const std::string & name, const BT::NodeConfiguration & config)

Constructor.

Parameters
name

The name of a particular instance of this Behavior.

config

Runtime configuration for this Behavior, including port mappings.

Declaration at line 38 of file trim_pointcloud_surface.hpp, definition at line 40 of file trim_pointcloud_surface.cpp.

Public Member Functions

tick()

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

Execute the behavior: trim the point cloud to the quadrilateral boundary.

Returns

SUCCESS if trimming succeeded, FAILURE otherwise.

Declaration at line 56 of file trim_pointcloud_surface.hpp, definition at line 61 of file trim_pointcloud_surface.cpp.

Public Static Functions

metadata()

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

Provide metadata for the MoveIt Studio Developer Tool UI.

Returns

A BT::KeyValueVector containing the Behavior metadata.

Declaration at line 50 of file trim_pointcloud_surface.hpp, definition at line 56 of file trim_pointcloud_surface.cpp.

providedPorts()

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

Declare input and output ports.

Returns

The list of ports for this behavior.

Declaration at line 44 of file trim_pointcloud_surface.hpp, definition at line 45 of file trim_pointcloud_surface.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.