#include <task_library.hpp>
Public Member Functions | |
JPosTask (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. |
Servos the joint position towards a desired posture using acceleration-bounded trajectories.
Definition at line 214 of file task_library.hpp.
opspace::JPosTask::JPosTask | ( | std::string const & | name | ) | [explicit] |
Definition at line 482 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 489 of file task_library.cpp.
References opspace::Task::actual_, jspace::Model::getNDOF(), jspace::Model::getState(), opspace::PDTask::initPDTask(), 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 498 of file task_library.cpp.
References opspace::Task::actual_, opspace::Task::command_, opspace::PDTask::computePDCommand(), and jspace::Model::getState().