MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
|
Get the JointState of a JointTrajectory at a specified time. More...
#include <get_trajectory_state_at_time.hpp>
Public Member Functions | |
GetTrajectoryStateAtTime (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) | |
Constructor for GetTrajectoryStateAtTime behavior. More... | |
BT::NodeStatus | tick () override |
Public Member Functions inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode > | |
SharedResourcesNode (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) | |
Constructor for SharedResourcesNode. Called by BT::BehaviorTreeFactory when creating a new behavior tree containing this node. More... | |
Static Public Member Functions | |
static BT::PortsList | providedPorts () |
static BT::KeyValueVector | metadata () |
Additional Inherited Members | |
Protected Attributes inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode > | |
std::shared_ptr< BehaviorContext > | shared_resources_ |
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 Name | Port Type | Object Type |
---|---|---|
joint_trajectory_msg | Input | trajectory_msgs::msg::JointTrajectory |
time_from_reference | Input | double |
from_start | Input | bool |
joint_state | Output | moveit_studio_agent_msgs::msg::RobotJointState |
moveit_studio::behaviors::GetTrajectoryStateAtTime::GetTrajectoryStateAtTime | ( | const std::string & | name, |
const BT::NodeConfiguration & | config, | ||
const std::shared_ptr< BehaviorContext > & | shared_resources | ||
) |
Constructor for GetTrajectoryStateAtTime behavior.
|
static |
|
static |
|
override |