moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
plan_execution::PlanExecution Class Reference

#include <plan_execution.hpp>

Classes

struct  Options

Public Member Functions

 PlanExecution (const rclcpp::Node::SharedPtr &node, const planning_scene_monitor::PlanningSceneMonitorPtr &planning_scene_monitor, const trajectory_execution_manager::TrajectoryExecutionManagerPtr &trajectory_execution)
 ~PlanExecution ()
const planning_scene_monitor::PlanningSceneMonitorPtr & getPlanningSceneMonitor () const
const trajectory_execution_manager::TrajectoryExecutionManagerPtr & getTrajectoryExecutionManager () const
double getTrajectoryStateRecordingFrequency () const
void setTrajectoryStateRecordingFrequency (double freq)
void setMaxReplanAttempts (unsigned int attempts)
unsigned int getMaxReplanAttempts () const
void planAndExecute (ExecutableMotionPlan &plan, const Options &opt)
void planAndExecute (ExecutableMotionPlan &plan, const moveit_msgs::msg::PlanningScene &scene_diff, const Options &opt)
moveit_msgs::msg::MoveItErrorCodes executeAndMonitor (ExecutableMotionPlan &plan, bool reset_preempted=true)
 Execute and monitor a previously created plan.
void stop ()

Detailed Description

Definition at line 54 of file plan_execution.hpp.

Constructor & Destructor Documentation

◆ PlanExecution()

plan_execution::PlanExecution::PlanExecution ( const rclcpp::Node::SharedPtr & node,
const planning_scene_monitor::PlanningSceneMonitorPtr & planning_scene_monitor,
const trajectory_execution_manager::TrajectoryExecutionManagerPtr & trajectory_execution )

Definition at line 81 of file plan_execution.cpp.

Here is the call graph for this function:

◆ ~PlanExecution()

plan_execution::PlanExecution::~PlanExecution ( )

Definition at line 109 of file plan_execution.cpp.

Member Function Documentation

◆ executeAndMonitor()

moveit_msgs::msg::MoveItErrorCodes plan_execution::PlanExecution::executeAndMonitor ( ExecutableMotionPlan & plan,
bool reset_preempted = true )

Execute and monitor a previously created plan.

In case there is no planning_scene or planning_scene_monitor set in the plan they will be set at the start of the method. They are then used to monitor the execution.

Definition at line 356 of file plan_execution.cpp.

◆ getMaxReplanAttempts()

unsigned int plan_execution::PlanExecution::getMaxReplanAttempts ( ) const
inline

Definition at line 131 of file plan_execution.hpp.

◆ getPlanningSceneMonitor()

const planning_scene_monitor::PlanningSceneMonitorPtr & plan_execution::PlanExecution::getPlanningSceneMonitor ( ) const
inline

Definition at line 98 of file plan_execution.hpp.

◆ getTrajectoryExecutionManager()

const trajectory_execution_manager::TrajectoryExecutionManagerPtr & plan_execution::PlanExecution::getTrajectoryExecutionManager ( ) const
inline

Definition at line 103 of file plan_execution.hpp.

◆ getTrajectoryStateRecordingFrequency()

double plan_execution::PlanExecution::getTrajectoryStateRecordingFrequency ( ) const
inline

Definition at line 108 of file plan_execution.hpp.

◆ planAndExecute() [1/2]

void plan_execution::PlanExecution::planAndExecute ( ExecutableMotionPlan & plan,
const moveit_msgs::msg::PlanningScene & scene_diff,
const Options & opt )

Definition at line 126 of file plan_execution.cpp.

Here is the call graph for this function:

◆ planAndExecute() [2/2]

void plan_execution::PlanExecution::planAndExecute ( ExecutableMotionPlan & plan,
const Options & opt )

Definition at line 119 of file plan_execution.cpp.

Here is the caller graph for this function:

◆ setMaxReplanAttempts()

void plan_execution::PlanExecution::setMaxReplanAttempts ( unsigned int attempts)
inline

Definition at line 126 of file plan_execution.hpp.

◆ setTrajectoryStateRecordingFrequency()

void plan_execution::PlanExecution::setTrajectoryStateRecordingFrequency ( double freq)
inline

Definition at line 120 of file plan_execution.hpp.

◆ stop()

void plan_execution::PlanExecution::stop ( )

Definition at line 114 of file plan_execution.cpp.


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