TrimPointcloudSurface Class
Trims a point cloud to contain only points within a quadrilateral boundary defined by 4 waypoints. More...
Declaration
Included Headers
Base class
| class | BT::SyncActionNode |
Public Constructors Index
| TrimPointcloudSurface (const std::string &name, const BT::NodeConfiguration &config) | |
|
Constructor. More... | |
Public Member Functions Index
| BT::NodeStatus | tick () override |
|
Execute the behavior: trim the point cloud to the quadrilateral boundary. More... | |
Public Static Functions Index
| static BT::PortsList | providedPorts () |
|
Declare input and output ports. More... | |
| static BT::KeyValueVector | metadata () |
|
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 Name | Port Type | Object Type |
|---|---|---|
| waypoints | input | std::vector<geometry_msgs::msg::PoseStamped> |
| point_cloud | input | sensor_msgs::msg::PointCloud2 |
| trimmed_point_cloud | output | sensor_msgs::msg::PointCloud2 |
Definition at line 30 of file trim_pointcloud_surface.hpp.
Public Constructors
TrimPointcloudSurface()
|
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()
|
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()
| 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()
| 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.