

| 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 | |
| bool | initialized_ | 
| bool | inertia_compensation_ | 
| bool | coriolis_compensation_ | 
| double | kp_ | 
| double | kd_ | 
| jspace::Vector | goalpos_ | 
| jspace::Vector | goalvel_ | 
Definition at line 48 of file tut04_inertia_coriolis.cpp.
| tut04::JTask::JTask | ( | ) |  [inline] | 
Definition at line 50 of file tut04_inertia_coriolis.cpp.
| virtual jspace::Status tut04::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 58 of file tut04_inertia_coriolis.cpp.
References jspace::Model::getNDOF(), jspace::Model::getState(), goalpos_, goalvel_, initialized_, opspace::Task::jacobian_, kd_, and kp_.
Referenced by update().

| virtual jspace::Status tut04::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.
Implements opspace::Task.
Definition at line 88 of file tut04_inertia_coriolis.cpp.
References opspace::Task::actual_, opspace::Task::command_, coriolis_compensation_, jspace::Model::getCoriolisCentrifugal(), jspace::Model::getGravity(), jspace::Model::getMassInertia(), jspace::Model::getState(), goalpos_, goalvel_, inertia_compensation_, init(), initialized_, kd_, and kp_.

| double tut04::JTask::kp_ | 
| double tut04::JTask::kd_ | 
 1.5.4
 1.5.4