Skip to main content

SetupMTCAddCollisionMesh Class

Append an MTC ModifyPlanningScene stage that adds a mesh collision object to the planning scene during MTC task execution. More...

Declaration

class moveit_pro::behaviors::SetupMTCAddCollisionMesh { ... }

Included Headers

#include <setup_mtc_add_collision_mesh.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More...

Public Constructors Index

SetupMTCAddCollisionMesh (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)

Public Member Functions Index

BT::NodeStatustick () override

Public Static Functions Index

static BT::PortsListprovidedPorts ()
static BT::KeyValueVectormetadata ()

Public Static Attributes Index

static constexpr autokPortIDTask = "task"
static constexpr autokPortIDObjectId = "object_id"
static constexpr autokPortIDMeshFilePath = "mesh_file_path"
static constexpr autokPortIDPose = "pose"
static constexpr autokPortIDScale = "scale"
static constexpr autokPortIDOverwrite = "overwrite"

Description

Append an MTC ModifyPlanningScene stage that adds a mesh collision object to the planning scene during MTC task execution.

MTC stage equivalent of AddCollisionMesh. The Behavior only appends the stage at Behavior-tick time; the scene change happens later, when MTC's planner executes the task. By default the stage fails to plan when a world object with the same id already exists in the planned scene; set overwrite to true to replace it instead. That check runs against the MTC pipeline scene, never the live scene.

Data Port NamePort TypeObject Type
taskBidirectionalstd::shared_ptr<moveit_pro::task_constructor::Task>
object_idInputstd::string
mesh_file_pathInputstd::string
poseInputgeometry_msgs::msg::PoseStamped
scaleInputstd::vector<double>
overwriteInputbool

Definition at line 35 of file setup_mtc_add_collision_mesh.hpp.

Public Constructors

SetupMTCAddCollisionMesh()

moveit_pro::behaviors::SetupMTCAddCollisionMesh::SetupMTCAddCollisionMesh (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< BehaviorContext > & shared_resources)

Declaration at line 45 of file setup_mtc_add_collision_mesh.hpp, definition at line 37 of file setup_mtc_add_collision_mesh.cpp.

Public Member Functions

tick()

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

Declaration at line 51 of file setup_mtc_add_collision_mesh.hpp, definition at line 68 of file setup_mtc_add_collision_mesh.cpp.

Public Static Functions

metadata()

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

Declaration at line 49 of file setup_mtc_add_collision_mesh.hpp, definition at line 63 of file setup_mtc_add_collision_mesh.cpp.

providedPorts()

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

Declaration at line 48 of file setup_mtc_add_collision_mesh.hpp, definition at line 43 of file setup_mtc_add_collision_mesh.cpp.

Public Static Attributes

kPortIDMeshFilePath

constexpr auto moveit_pro::behaviors::SetupMTCAddCollisionMesh::kPortIDMeshFilePath = "mesh_file_path"
constexpr static

Definition at line 40 of file setup_mtc_add_collision_mesh.hpp.

kPortIDObjectId

constexpr auto moveit_pro::behaviors::SetupMTCAddCollisionMesh::kPortIDObjectId = "object_id"
constexpr static

Definition at line 39 of file setup_mtc_add_collision_mesh.hpp.

kPortIDOverwrite

constexpr auto moveit_pro::behaviors::SetupMTCAddCollisionMesh::kPortIDOverwrite = "overwrite"
constexpr static

Definition at line 43 of file setup_mtc_add_collision_mesh.hpp.

kPortIDPose

constexpr auto moveit_pro::behaviors::SetupMTCAddCollisionMesh::kPortIDPose = "pose"
constexpr static

Definition at line 41 of file setup_mtc_add_collision_mesh.hpp.

kPortIDScale

constexpr auto moveit_pro::behaviors::SetupMTCAddCollisionMesh::kPortIDScale = "scale"
constexpr static

Definition at line 42 of file setup_mtc_add_collision_mesh.hpp.

kPortIDTask

constexpr auto moveit_pro::behaviors::SetupMTCAddCollisionMesh::kPortIDTask = "task"
constexpr static

Definition at line 38 of file setup_mtc_add_collision_mesh.hpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.