Aikido
|
Abstract class for executing trajectories. More...
#include <aikido/control/TrajectoryExecutor.hpp>
Public Member Functions | |
virtual | ~TrajectoryExecutor ()=default |
virtual void | validate (const trajectory::Trajectory *traj)=0 |
Validate the traj in preparation for execution. More... | |
virtual std::future< void > | execute (const trajectory::ConstTrajectoryPtr &traj)=0 |
Validate and execute traj, setting future upon completion. More... | |
virtual void | step (const std::chrono::system_clock::time_point &timepoint)=0 |
Step to a point in time. More... | |
virtual void | cancel ()=0 |
Cancel the current trajectory. More... | |
Protected Attributes | |
std::set< const trajectory::Trajectory * > | mValidatedTrajectories |
Set of trajectories validated by executor. More... | |
std::chrono::system_clock::time_point | mExecutionStartTime |
Time of previous call. More... | |
Abstract class for executing trajectories.
|
virtualdefault |
|
pure virtual |
Cancel the current trajectory.
Implemented in aikido::control::ros::RosTrajectoryExecutor, aikido::control::KinematicSimulationTrajectoryExecutor, aikido::control::InstantaneousTrajectoryExecutor, and aikido::control::QueuedTrajectoryExecutor.
|
pure virtual |
Validate and execute traj, setting future upon completion.
If a trajectory is already running, raise an exception unless the executor supports queuing.
traj | Trajectory to be executed. |
Implemented in aikido::control::ros::RosTrajectoryExecutor, aikido::control::KinematicSimulationTrajectoryExecutor, aikido::control::InstantaneousTrajectoryExecutor, and aikido::control::QueuedTrajectoryExecutor.
|
pure virtual |
Step to a point in time.
timepoint
can be a time in the future to enable faster than real-time execution.timepoint | Time to simulate to |
Implemented in aikido::control::ros::RosTrajectoryExecutor, aikido::control::KinematicSimulationTrajectoryExecutor, aikido::control::QueuedTrajectoryExecutor, and aikido::control::InstantaneousTrajectoryExecutor.
|
pure virtual |
Validate the traj in preparation for execution.
traj | Trajectory to be validated |
Implemented in aikido::control::ros::RosTrajectoryExecutor, aikido::control::KinematicSimulationTrajectoryExecutor, aikido::control::InstantaneousTrajectoryExecutor, and aikido::control::QueuedTrajectoryExecutor.
|
protected |
Time of previous call.
|
protected |
Set of trajectories validated by executor.