Skip to main content

WaitForJointTrajectoryApproval Class

Takes a raw JointTrajectory via an input data port (e.g. the output of PlanToJointGoal or PlanCartesianPath), wraps it in a minimal MTC Solution, and publishes it to the /preview_solution topic. Creates a SetBool service server on the /execute_behavior_solution topic and waits to receive a request containing data: true before succeeding. Visualizes the cartesian path for each valid input link name with a green line while waiting. More...

Declaration

class moveit_pro::behaviors::WaitForJointTrajectoryApproval { ... }

Included Headers

#include <wait_for_joint_trajectory_approval.hpp>

Base class

classWaitForApprovalBase

Public Member Functions Index

BT::NodeStatusonStart () override

Public Static Functions Index

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

Description

Takes a raw JointTrajectory via an input data port (e.g. the output of PlanToJointGoal or PlanCartesianPath), wraps it in a minimal MTC Solution, and publishes it to the /preview_solution topic. Creates a SetBool service server on the /execute_behavior_solution topic and waits to receive a request containing data: true before succeeding. Visualizes the cartesian path for each valid input link name with a green line while waiting.

For robots with joints outside the planning group (e.g. mobile bases, external axes), wire a GetCurrentPlanningScene Behavior upstream and pass its output to the planning_scene port so the preview reflects the full robot state. Without a planning scene, joints outside the trajectory fall back to URDF-default values.

Data Port NamePort TypeObject Type
joint_trajectory_msgInputtrajectory_msgs::msg::JointTrajectory
planning_sceneInputmoveit_msgs::msg::PlanningScene
cartesian_path_linksInputstd::vector<std::string>
info

IMPORTANT: This Behavior creates a SetBool service server on the /execute_behavior_solution topic. Only one Behavior (of any class) that claims this service name can be instantiated per Objective; multiple instances will cause service-server conflicts. This interface will need to change to resolve the conflict robustly.

Definition at line 35 of file wait_for_joint_trajectory_approval.hpp.

Public Member Functions

onStart()

BT::NodeStatus moveit_pro::behaviors::WaitForJointTrajectoryApproval::onStart ()

Declaration at line 44 of file wait_for_joint_trajectory_approval.hpp, definition at line 61 of file wait_for_joint_trajectory_approval.cpp.

Public Static Functions

metadata()

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

Declaration at line 42 of file wait_for_joint_trajectory_approval.hpp, definition at line 55 of file wait_for_joint_trajectory_approval.cpp.

providedPorts()

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

Declaration at line 40 of file wait_for_joint_trajectory_approval.hpp, definition at line 42 of file wait_for_joint_trajectory_approval.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.