Skip to main content

BlendJointTrajectories Class

Blend a sequence of joint trajectories into a single trajectory with smooth transitions. More...

Declaration

class moveit_pro::behaviors::BlendJointTrajectories { ... }

Included Headers

#include <blend_joint_trajectories.hpp>

Base class

classSharedResourcesNode<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::NodeStatustick () override

Public Static Functions Index

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

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 NamePort TypeObject Type
joint_trajectoriesInputstd::vector<trajectory_msgs::msg::JointTrajectory>
planning_group_nameInputstd::string
connection_toleranceInputdouble
blending_radiusInputdouble
velocity_scale_factorInputdouble
acceleration_scale_factorInputdouble
jerk_scale_factorInputdouble
trajectory_sampling_rateInputunsigned int
retime_after_blendingInputbool
joint_trajectory_msgOutputtrajectory_msgs::msg::JointTrajectory

Definition at line 42 of file blend_joint_trajectories.hpp.

Public Constructors

BlendJointTrajectories()

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

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()

BT::NodeStatus moveit_pro::behaviors::BlendJointTrajectories::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()

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

Declaration at line 56 of file blend_joint_trajectories.hpp, definition at line 254 of file blend_joint_trajectories.cpp.

providedPorts()

BT::PortsList moveit_pro::behaviors::BlendJointTrajectories::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.