MoveIt sends commands to a controller via a handle that satisfies this interface.
More...
#include <controller_manager.h>
MoveIt sends commands to a controller via a handle that satisfies this interface.
Definition at line 136 of file controller_manager.h.
◆ 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 140 of file controller_manager.h.
◆ ~MoveItControllerHandle()
virtual moveit_controller_manager::MoveItControllerHandle::~MoveItControllerHandle |
( |
| ) |
|
|
inlinevirtual |
◆ cancelExecution()
virtual bool moveit_controller_manager::MoveItControllerHandle::cancelExecution |
( |
| ) |
|
|
pure virtual |
Cancel the execution of any motion using this controller.
Report false if canceling is not possible. If there is no execution in progress, this function is a no-op and returns true.
◆ getLastExecutionStatus()
virtual ExecutionStatus moveit_controller_manager::MoveItControllerHandle::getLastExecutionStatus |
( |
| ) |
|
|
pure virtual |
Return the execution status of the last trajectory sent to the controller.
◆ 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 149 of file controller_manager.h.
◆ sendTrajectory()
virtual bool moveit_controller_manager::MoveItControllerHandle::sendTrajectory |
( |
const moveit_msgs::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.
◆ waitForExecution()
virtual bool moveit_controller_manager::MoveItControllerHandle::waitForExecution |
( |
const ros::Duration & |
timeout = ros::Duration(0) | ) |
|
|
pure virtual |
Wait for the current execution to complete, or until the timeout is reached.
Return true if the execution is complete (whether successful or not). Return false if timeout was reached. If timeout is 0 (default argument), wait until the execution is complete (no timeout).
◆ name_
std::string moveit_controller_manager::MoveItControllerHandle::name_ |
|
protected |
The documentation for this class was generated from the following file: