Skip to main content

GetRobotStateFromTrajectory Class

Get the JointState of a JointTrajectory at a specified time. More...

Declaration

class moveit_pro::behaviors::GetRobotStateFromTrajectory { ... }

Included Headers

#include <get_robot_state_from_trajectory.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

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

Public Constructors Index

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

Constructor for GetRobotStateFromTrajectory behavior. More...

Public Member Functions Index

BT::NodeStatustick () override

Public Static Functions Index

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

Description

Get the JointState of a JointTrajectory at a specified time.

If from_start is true, then the trajectory will be queried at the time_from_reference from its start, otherwise it will be queried at the time_from_reference from its end. If time_from_reference doesn't exactly match a state in the trajectory, but is still within the bounds of the trajectory then the behavior will interpolate between states. The behavior will return FAILURE if the time_from_reference is outside the bounds of the trajectory.

Data Port NamePort TypeObject Type
joint_trajectory_msgInputtrajectory_msgs::msg::JointTrajectory
time_from_referenceInputdouble
from_startInputbool
joint_stateOutputmoveit_msgs::msg::RobotState

Definition at line 34 of file get_robot_state_from_trajectory.hpp.

Public Constructors

GetRobotStateFromTrajectory()

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

Constructor for GetRobotStateFromTrajectory behavior.

Parameters
name

See SharedResourcesNode

config

See SharedResourcesNode

shared_resources

See SharedResourcesNode

Declaration at line 43 of file get_robot_state_from_trajectory.hpp, definition at line 68 of file get_robot_state_from_trajectory.cpp.

Public Member Functions

tick()

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

Declaration at line 50 of file get_robot_state_from_trajectory.hpp, definition at line 94 of file get_robot_state_from_trajectory.cpp.

Public Static Functions

metadata()

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

Declaration at line 48 of file get_robot_state_from_trajectory.hpp, definition at line 89 of file get_robot_state_from_trajectory.cpp.

providedPorts()

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

Declaration at line 46 of file get_robot_state_from_trajectory.hpp, definition at line 74 of file get_robot_state_from_trajectory.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.