MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
moveit_studio::behaviors::GetClosestObjectToPose Class Referencefinal

Given a collection of GraspableObjects, find the one that's closest to the provided pose. More...

#include <get_closest_object_to_pose.hpp>

Inheritance diagram for moveit_studio::behaviors::GetClosestObjectToPose:
Collaboration diagram for moveit_studio::behaviors::GetClosestObjectToPose:

Public Member Functions

 GetClosestObjectToPose (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
 Construct a new GetClosestObjectToPose behavior. More...
 
BT::NodeStatus tick () override
 Contains the logic to evaluate object distance. More...
 
- Public Member Functions inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode >
 SharedResourcesNode (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
 Constructor for SharedResourcesNode. Called by BT::BehaviorTreeFactory when creating a new behavior tree containing this node. More...
 

Static Public Member Functions

static BT::PortsList providedPorts ()
 Returns list of ports for this behavior. More...
 
static BT::KeyValueVector metadata ()
 

Additional Inherited Members

- Protected Attributes inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode >
std::shared_ptr< BehaviorContextshared_resources_
 

Detailed Description

Given a collection of GraspableObjects, find the one that's closest to the provided pose.

Constructor & Destructor Documentation

◆ GetClosestObjectToPose()

moveit_studio::behaviors::GetClosestObjectToPose::GetClosestObjectToPose ( const std::string &  name,
const BT::NodeConfiguration &  config,
const std::shared_ptr< BehaviorContext > &  shared_resources 
)
explicit

Construct a new GetClosestObjectToPose behavior.

Parameters
nameSee SharedResourcesNode
configSee SharedResourcesNode
shared_resourcesSee SharedResourcesNode

Member Function Documentation

◆ metadata()

BT::KeyValueVector moveit_studio::behaviors::GetClosestObjectToPose::metadata ( )
static

◆ providedPorts()

BT::PortsList moveit_studio::behaviors::GetClosestObjectToPose::providedPorts ( )
static

Returns list of ports for this behavior.

Returns
BT::PortsList

◆ tick()

BT::NodeStatus moveit_studio::behaviors::GetClosestObjectToPose::tick ( )
override

Contains the logic to evaluate object distance.

Returns
BT::NodeStatus Returns success if the call was successful.

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