SetupMTCBatchPathIK Class
Given an existing MTC Task object, append a stage that plans a Cartesian motion along each of several candidate paths, so the task can keep the best one. More...
Declaration
class moveit_pro::behaviors::SetupMTCBatchPathIK { ... }
#include <setup_mtc_batch_path_ik.hpp>
Base class
Public Constructors Index
| SetupMTCBatchPathIK (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) |
|
|
|
Public Member Functions Index
| BT::NodeStatus | tick () override |
|
|
|
Private Member Functions Index
| tl::expected< std::vector< std::vector< geometry_msgs::msg::PoseStamped > >, std::string > | readPaths () const |
|
|
|
Public Static Functions Index
Public Static Attributes Index
Description
Given an existing MTC Task object, append a stage that plans a Cartesian motion along each of several candidate paths, so the task can keep the best one.
This Behavior sets up a MoveIt Task Constructor (MTC) Batch Path IK stage. The stage plans every candidate path in paths from the same start state, as SetupMTCPathIK's stage plans its single path, with the same options for every candidate. It sends each candidate that succeeds forward and reports each one that fails with its index in paths. The cost is the summed joint-space distance over the group's active joints; a mobile base counts through how far its wheels turn. PlanMTCTask then keeps the lowest-cost complete solution. PlanMTCTask checks for cancellation and its timeout only between stage computations, so it cannot stop until every candidate is planned.
paths is a vector of paths, each a non-empty vector of PoseStamped messages in any frame known to the robot's URDF. Build it in an Objective with ResetVector and PushBackVector, pushing one path, built with ResetPoseStampedVector and PushBackVector, per candidate.
Unlike SetupMTCPathIK, it has no deprecated position_only port: cartesian_constraint defaults to position and orientation. It takes its timing from trajectory_timing, time-optimal only, instead of scalar timing ports.
| Data Port Name | Port Type | Object Type |
|---|
| task | bidirectional | std::shared_ptr<moveit_pro::task_constructor::Task> |
| paths | input | std::vector<std::vector<geometry_msgs::msg::PoseStamped>> |
| planning_group_name | input | std::string |
| tip_links | input | std::vector<std::string> |
| tip_offset | input | std::vector<double> |
| cartesian_constraint | input | moveit_studio_msgs::msg::CartesianConstraint |
| trajectory_timing | input | moveit_studio_msgs::msg::TrajectoryTiming |
| blending_radius | input | double |
| ik_cartesian_space_density | input | double |
| ik_joint_space_density | input | double |
| max_optimizer_iterations | input | int |
| ignore_environment_collisions | input | bool |
Definition at line 56 of file setup_mtc_batch_path_ik.hpp.
Public Constructors
SetupMTCBatchPathIK()
| moveit_pro::behaviors::SetupMTCBatchPathIK::SetupMTCBatchPathIK (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< BehaviorContext > & shared_resources) |
|
Public Member Functions
tick()
| BT::NodeStatus moveit_pro::behaviors::SetupMTCBatchPathIK::tick () |
|
Private Member Functions
readPaths()
| tl::expected< CandidatePaths, std::string > moveit_pro::behaviors::SetupMTCBatchPathIK::readPaths () |
|
nodiscard
|
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::SetupMTCBatchPathIK::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::SetupMTCBatchPathIK::providedPorts () |
|
static
|
Public Static Attributes
kDefaultStageName
| auto moveit_pro::behaviors::SetupMTCBatchPathIK::kDefaultStageName = "Batch Path IK" |
|
constexpr
static
|
kPortIdPaths
| auto moveit_pro::behaviors::SetupMTCBatchPathIK::kPortIdPaths = "paths" |
|
constexpr
static
|
kPortIdTask
| auto moveit_pro::behaviors::SetupMTCBatchPathIK::kPortIdTask = "task" |
|
constexpr
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.15.0.