Skip to main content

GeneratePointToPointTrajectory Class

Generate a joint-space point-to-point trajectory to move the robot from the start joint state to the target joint state. More...

Declaration​

class moveit_pro::behaviors::GeneratePointToPointTrajectory { ... }

Included Headers​

#include <generate_point_to_point_trajectory.hpp>

Base class​

classSharedResourcesNode<BehaviorTreeNodeT>

The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More...

Public Constructors Index​

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

Constructor for GeneratePointToPointTrajectory behavior. More...

Public Member Functions Index​

BT::NodeStatustick () override

Public Static Functions Index​

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

Description​

Generate a joint-space point-to-point trajectory to move the robot from the start joint state to the target joint state.

Independent continuous joints use the equivalent target nearest the supplied start. Target positions do not request extra revolutions. Joints with mimic coupling keep their supplied targets.

The output (joint_trajectory_msg) is a timed joint-space trajectory that is ready to be sent to a trajectory tracking controller. The first point in the trajectory will have a time_from_start equal to the value specified on the start_time input port and will be sampled at the rate specified on the trajectory_sampling_rate input port. 'velocity_scale_factor', 'acceleration_scale_factor', and 'jerk_scale_factor' control the desired joint-space motion as a fraction ([0,1]) of the maximum joint velocities, accelerations, and jerks defined in the MoveIt configs.

The behavior returns SUCCESS if a trajectory was successfully computed between the start and target joint states, or FAILURE otherwise.

Data Port NamePort TypeObject Type
planning_group_nameInputstd::string
start_stateInputmoveit_msgs::msg::RobotState
target_stateInputmoveit_msgs::msg::RobotState
velocity_scale_factorInputdouble
acceleration_scale_factorInputdouble
jerk_scale_factorInputdouble
trajectory_sampling_rateInputunsigned int
start_timeInputdouble
joint_trajectory_msgOutputtrajectory_msgs::msg::JointTrajectory

Definition at line 47 of file generate_point_to_point_trajectory.hpp.

Public Constructors​

GeneratePointToPointTrajectory()​

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

Constructor for GeneratePointToPointTrajectory behavior.

Declaration at line 53 of file generate_point_to_point_trajectory.hpp, definition at line 217 of file generate_point_to_point_trajectory.cpp.

Public Member Functions​

tick()​

BT::NodeStatus moveit_pro::behaviors::GeneratePointToPointTrajectory::tick ()

Declaration at line 60 of file generate_point_to_point_trajectory.hpp, definition at line 262 of file generate_point_to_point_trajectory.cpp.

Public Static Functions​

metadata()​

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

Declaration at line 58 of file generate_point_to_point_trajectory.hpp, definition at line 257 of file generate_point_to_point_trajectory.cpp.

providedPorts()​

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

Declaration at line 56 of file generate_point_to_point_trajectory.hpp, definition at line 224 of file generate_point_to_point_trajectory.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.