#include <task_library.hpp>
Public Member Functions | |
JPosTrjTask (std::string const &name) | |
virtual Status | init (Model const &model) |
Abstract, implemented by subclasses in order to initialize the task. | |
virtual Status | update (Model const &model) |
Abstract, implemented by subclasses in order to compute the current task state, the command acceleration, and the Jacobian. | |
void | quickSetup (double dt_seconds, double kp, double kd, double maxvel, double maxacc) |
Servos the joint position towards a desired posture using acceleration-bounded trajectories.
Parameters: inherited from TrajectoryTask.
Definition at line 361 of file task_library.hpp.
opspace::JPosTrjTask::JPosTrjTask | ( | std::string const & | name | ) | [explicit] |
Definition at line 822 of file task_library.cpp.
Abstract, implemented by subclasses in order to initialize the task.
This is important for stateful tasks, for instance in order to initialize a trajectory-following behavior. The init() method also gets called when tasks are switched at runtime, so subclasses should NOT assume that init() only gets called once at startup.
Implements opspace::Task.
Definition at line 829 of file task_library.cpp.
References opspace::Task::actual_, jspace::Model::getNDOF(), jspace::Model::getState(), opspace::TrajectoryTask::initTrajectoryTask(), and opspace::Task::jacobian_.
Abstract, implemented by subclasses in order to compute the current task state, the command acceleration, and the Jacobian.
Given the current joint-space model passed as argument to this method, subclasses have to set the actual_, command_, and jacobian_ fields. These will then get retrieved according to the task hierarchy and assembled into joint torque commands using dynamically consistent nullspace projection.
Implements opspace::Task.
Definition at line 838 of file task_library.cpp.
References opspace::Task::actual_, opspace::Task::command_, opspace::TrajectoryTask::computeTrajectoryCommand(), and jspace::Model::getState().
void opspace::JPosTrjTask::quickSetup | ( | double | dt_seconds, | |
double | kp, | |||
double | kd, | |||
double | maxvel, | |||
double | maxacc | |||
) |
Definition at line 846 of file task_library.cpp.
References opspace::TrajectoryTask::dt_seconds_, opspace::PDTask::kd_, opspace::PDTask::kp_, opspace::TrajectoryTask::maxacc_, and opspace::PDTask::maxvel_.