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. Waits for a request on the shared /execute_behavior_solution SetBool service containing data: true before succeeding. Visualizes the cartesian path for each valid input link name with a green line while waiting. More...
Declaration
Included Headers
Base class
| class | WaitForApprovalBase |
Public Member Functions Index
| BT::NodeStatus | onStart () override |
Public Static Functions Index
| static BT::PortsList | providedPorts () |
| static BT::KeyValueVector | metadata () |
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. Waits for a request on the shared /execute_behavior_solution SetBool service 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 Name | Port Type | Object Type |
|---|---|---|
| joint_trajectory_msg | Input | trajectory_msgs::msg::JointTrajectory |
| planning_scene | Input | moveit_msgs::msg::PlanningScene |
| cartesian_path_links | Input | std::vector<std::string> |
IMPORTANT: Answers arrive on the shared /execute_behavior_solution service. Only one approval Behavior (of any class) can wait at a time: one that starts while another is waiting fails without replacing the active preview.
Definition at line 33 of file wait_for_joint_trajectory_approval.hpp.
Public Member Functions
onStart()
|
Declaration at line 42 of file wait_for_joint_trajectory_approval.hpp, definition at line 62 of file wait_for_joint_trajectory_approval.cpp.
Public Static Functions
metadata()
| static |
Declaration at line 40 of file wait_for_joint_trajectory_approval.hpp, definition at line 55 of file wait_for_joint_trajectory_approval.cpp.
providedPorts()
| static |
Declaration at line 38 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.15.0.