tut02::JTask Class Reference

Inheritance diagram for tut02::JTask:

Inheritance graph
[legend]
Collaboration diagram for tut02::JTask:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 JTask ()
virtual jspace::Status init (jspace::Model const &model)
 Abstract, implemented by subclasses in order to initialize the task.
virtual jspace::Status update (jspace::Model const &model)
 Abstract, implemented by subclasses in order to compute the current task state, the command acceleration, and the Jacobian.

Public Attributes

double kp_
double kd_
jspace::Vector goal_


Detailed Description

Definition at line 53 of file tut02_jtask.cpp.


Constructor & Destructor Documentation

tut02::JTask::JTask (  )  [inline]

Definition at line 55 of file tut02_jtask.cpp.


Member Function Documentation

virtual jspace::Status tut02::JTask::init ( jspace::Model const &  model  )  [inline, 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 57 of file tut02_jtask.cpp.

References jspace::Model::getNDOF(), jspace::Model::getState(), goal_, opspace::Task::jacobian_, kd_, and kp_.

Here is the call graph for this function:

virtual jspace::Status tut02::JTask::update ( jspace::Model const &  model  )  [inline, 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 94 of file tut02_jtask.cpp.

References opspace::Task::actual_, opspace::Task::command_, jspace::Model::getState(), goal_, kd_, and kp_.

Here is the call graph for this function:


Member Data Documentation

double tut02::JTask::kp_

Definition at line 113 of file tut02_jtask.cpp.

Referenced by init(), and update().

double tut02::JTask::kd_

Definition at line 113 of file tut02_jtask.cpp.

Referenced by init(), and update().

jspace::Vector tut02::JTask::goal_

Definition at line 114 of file tut02_jtask.cpp.

Referenced by init(), and update().


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