opspace::JPosTask Class Reference

Joint-space posture task. More...

#include <task_library.hpp>

Inheritance diagram for opspace::JPosTask:

Inheritance graph
[legend]
Collaboration diagram for opspace::JPosTask:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Joint-space posture task.

Servos the joint position towards a desired posture using acceleration-bounded trajectories.

Note:
Uses component-wise velocity saturation.
Parameters: inherited from PDTask.

Definition at line 214 of file task_library.hpp.


Constructor & Destructor Documentation

opspace::JPosTask::JPosTask ( std::string const &  name  )  [explicit]

Definition at line 482 of file task_library.cpp.


Member Function Documentation

Status opspace::JPosTask::init ( Model const &  model  )  [virtual]

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_.

Here is the call graph for this function:

Status opspace::JPosTask::update ( Model const &  model  )  [virtual]

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.

Note:
Make sure your subclass sets the actual_, command_, and jacobian_ fields in the implementation of this method.

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().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Aug 26 01:35:09 2011 for Stanford Whole-Body Control Framework by  doxygen 1.5.4