Infer grasp pose from point cloud of an object.
More...
#include <l2g_grasping.hpp>
|
static BT::PortsList | providedPorts () |
| Implementation of the required providedPorts() function for the Behavior.
|
|
static BT::KeyValueVector | metadata () |
| Implementation of the metadata() function for displaying metadata, such as Behavior description and subcategory, in the MoveIt Studio Developer Tool.
|
|
|
tl::expected< bool, std::string > | doWork () override |
| User-implemented function which handles executing the potentially-long-running process.
|
|
virtual tl::expected< void, std::string > | doHalt () |
| Optionally implement additional work needed to cleanly interrupt the async process.
|
|
void | notifyCanHalt () |
| Called when runAsync() finishes to notify onHalted() that the async process has finished.
|
|
Infer grasp pose from point cloud of an object.
◆ GetGraspPoseFromPointCloud()
Constructs the behavior for inferring grasps from point clouds.
- Parameters
-
name | of a particular instance of this Behavior. This will be set by the behavior tree factory when this Behavior is created within a new behavior tree. |
config | for this Behavior, such as the mapping between the Behavior's data ports on the behavior tree's blackboard. This will be set by the behavior tree factory when this Behavior is created within a new behavior tree. |
model | that does the grasp inference. |
An important limitation is that the members of the base Behavior class are not instantiated until after the initialize() function is called, so these classes should not be used within the constructor.
◆ ~GetGraspPoseFromPointCloud()
moveit_studio::behaviors::GetGraspPoseFromPointCloud::~GetGraspPoseFromPointCloud |
( |
| ) |
|
|
final |
Ensures the model finishes gracefully
◆ doWork()
tl::expected< bool, std::string > moveit_studio::behaviors::GetGraspPoseFromPointCloud::doWork |
( |
| ) |
|
|
overrideprotectedvirtual |
User-implemented function which handles executing the potentially-long-running process.
This function is called within an async process in a separate thread.
- Returns
- A tl::expected which contains a bool indicating task success if the process completed successfully or was canceled, or an error message if the process failed unexpectedly.
Implements moveit_studio::behaviors::AsyncBehaviorBase.
◆ metadata()
BT::KeyValueVector moveit_studio::behaviors::GetGraspPoseFromPointCloud::metadata |
( |
| ) |
|
|
static |
Implementation of the metadata() function for displaying metadata, such as Behavior description and subcategory, in the MoveIt Studio Developer Tool.
- Returns
- A BT::KeyValueVector containing the Behavior metadata.
◆ providedPorts()
BT::PortsList moveit_studio::behaviors::GetGraspPoseFromPointCloud::providedPorts |
( |
| ) |
|
|
static |
Implementation of the required providedPorts() function for the Behavior.
The BehaviorTree.CPP library requires that Behaviors must implement a static function named providedPorts() which defines their input and output ports. If the Behavior does not use any ports, this function must return an empty BT::PortsList. This function returns a list of ports with their names and port info, which is used internally by the behavior tree.
- Returns
- List of ports for the behavior.
The documentation for this class was generated from the following files: