moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
moveit_controller_manager::MoveItControllerHandle Class Referenceabstract

MoveIt sends commands to a controller via a handle that satisfies this interface. More...

#include <controller_manager.hpp>

Inheritance diagram for moveit_controller_manager::MoveItControllerHandle:

Public Member Functions

 MoveItControllerHandle (const std::string &name)
 Each controller has a name. The handle is initialized with that name.
virtual ~MoveItControllerHandle ()
const std::string & getName () const
 Get the name of the controller this handle can send commands to.
virtual bool sendTrajectory (const moveit_msgs::msg::RobotTrajectory &trajectory)=0
 Send a trajectory to the controller.
virtual bool cancelExecution ()=0
 Cancel the execution of any motion using this controller.
virtual bool waitForExecution (const rclcpp::Duration &timeout=rclcpp::Duration::from_nanoseconds(-1))=0
 Wait for the current execution to complete, or until the timeout is reached.
virtual ExecutionStatus getLastExecutionStatus ()=0
 Return the execution status of the last trajectory sent to the controller.

Protected Attributes

std::string name_

Detailed Description

MoveIt sends commands to a controller via a handle that satisfies this interface.

Definition at line 105 of file controller_manager.hpp.

Constructor & Destructor Documentation

◆ MoveItControllerHandle()

moveit_controller_manager::MoveItControllerHandle::MoveItControllerHandle ( const std::string & name)
inline

Each controller has a name. The handle is initialized with that name.

Definition at line 109 of file controller_manager.hpp.

Here is the caller graph for this function:

◆ ~MoveItControllerHandle()

virtual moveit_controller_manager::MoveItControllerHandle::~MoveItControllerHandle ( )
inlinevirtual

Definition at line 113 of file controller_manager.hpp.

Member Function Documentation

◆ cancelExecution()

◆ getLastExecutionStatus()

◆ getName()

const std::string & moveit_controller_manager::MoveItControllerHandle::getName ( ) const
inline

Get the name of the controller this handle can send commands to.

Definition at line 118 of file controller_manager.hpp.

◆ sendTrajectory()

virtual bool moveit_controller_manager::MoveItControllerHandle::sendTrajectory ( const moveit_msgs::msg::RobotTrajectory & trajectory)
pure virtual

Send a trajectory to the controller.

The controller is expected to execute the trajectory, but this function call should not block. Blocking is achievable by calling waitForExecution(). Return false when the controller cannot accept the trajectory.

Implemented in moveit_simple_controller_manager::EmptyControllerHandle, moveit_simple_controller_manager::FollowJointTrajectoryControllerHandle, moveit_simple_controller_manager::GripperCommandControllerHandle, moveit_simple_controller_manager::ParallelGripperCommandControllerHandle, and test_moveit_controller_manager::TestMoveItControllerHandle.

◆ waitForExecution()

virtual bool moveit_controller_manager::MoveItControllerHandle::waitForExecution ( const rclcpp::Duration & timeout = rclcpp::Duration::from_nanoseconds(-1))
pure virtual

Member Data Documentation

◆ name_

std::string moveit_controller_manager::MoveItControllerHandle::name_
protected

Definition at line 147 of file controller_manager.hpp.


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