BlendJointTrajectories Class
Blend a sequence of joint trajectories into a single trajectory with smooth transitions. More...
Declaration
Included Headers
Base class
| class | SharedResourcesNode<BehaviorTreeNodeT> |
|
The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More... | |
Public Constructors Index
| BlendJointTrajectories (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) | |
|
Constructor for BlendJointTrajectories behavior. More... | |
Public Member Functions Index
| BT::NodeStatus | tick () override |
Public Static Functions Index
| static BT::PortsList | providedPorts () |
| static BT::KeyValueVector | metadata () |
Description
Blend a sequence of joint trajectories into a single trajectory with smooth transitions.
Takes a vector of JointTrajectory messages and produces a single blended trajectory. At each connection point between consecutive trajectories, a local blending segment is generated using Ruckig to smoothly transition from one trajectory to the next. The blending region is defined by a radius in joint-space Euclidean distance from each connection point. The individual trajectories are preserved outside the blending regions.
All input trajectory points must have position, velocity, and acceleration data populated.
| Data Port Name | Port Type | Object Type |
|---|---|---|
| joint_trajectories | Input | std::vector<trajectory_msgs::msg::JointTrajectory> |
| planning_group_name | Input | std::string |
| connection_tolerance | Input | double |
| blending_radius | Input | double |
| velocity_scale_factor | Input | double |
| acceleration_scale_factor | Input | double |
| jerk_scale_factor | Input | double |
| trajectory_sampling_rate | Input | unsigned int |
| retime_after_blending | Input | bool |
| joint_trajectory_msg | Output | trajectory_msgs::msg::JointTrajectory |
Definition at line 42 of file blend_joint_trajectories.hpp.
Public Constructors
BlendJointTrajectories()
|
Constructor for BlendJointTrajectories behavior.
- Parameters
-
name The name of the behavior tree node.
config The node configuration.
shared_resources Shared resources including the robot model and logger.
Declaration at line 51 of file blend_joint_trajectories.hpp, definition at line 213 of file blend_joint_trajectories.cpp.
Public Member Functions
tick()
|
Declaration at line 58 of file blend_joint_trajectories.hpp, definition at line 259 of file blend_joint_trajectories.cpp.
Public Static Functions
metadata()
| static |
Declaration at line 56 of file blend_joint_trajectories.hpp, definition at line 254 of file blend_joint_trajectories.cpp.
providedPorts()
| static |
Declaration at line 54 of file blend_joint_trajectories.hpp, definition at line 219 of file blend_joint_trajectories.cpp.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.