![]() |
MoveIt Pro API
Core Behaviors for MoveIt Pro
|
This is the base class for SetupMTCAttachObject and SetupMTCDetachObject. More...
#include <setup_mtc_attach_object.hpp>
Public Types | |
enum class | Operation { ATTACH , DETACH } |
Public Member Functions | |
SetupMTCAttachOrDetachObject (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources, const Operation &operation) | |
BT::NodeStatus | tick () override |
![]() | |
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. | |
Protected Attributes | |
const Operation | operation_ |
![]() | |
std::shared_ptr< BehaviorContext > | shared_resources_ |
This is the base class for SetupMTCAttachObject and SetupMTCDetachObject.
The only internal difference between these Behaviors is whether the ModifyPlanningScene stage is attaching or releasing the object, so it is efficient to reuse the elements that are in common.
Toggle between attaching or releasing by passing a different Operation enum in the constructor.
moveit_studio::behaviors::SetupMTCAttachOrDetachObject::SetupMTCAttachOrDetachObject | ( | const std::string & | name, |
const BT::NodeConfiguration & | config, | ||
const std::shared_ptr< BehaviorContext > & | shared_resources, | ||
const Operation & | operation | ||
) |
|
override |