#include <spin.hh>
Inheritance diagram for anoid::plugin::Spin:


Public Methods | |
| virtual double * | getSpin () |
| void | setRotation (double *r) |
| void | getOldRotation (double *a) |
| void | setSpin (double *s) |
| virtual void | init (config::Configuration &c) |
| virtual void | update () |
Protected Attributes | |
| double | spin [16] |
| double | oldRotation [16] |
Definition at line 13 of file spin.hh.
|
|
Definition at line 20 of file spin.hh. References copyMatrix(), and oldRotation. |
|
|
Definition at line 22 of file spin.cc. References spin. |
|
|
This is the real initialiser. It should take it's parameters from the provided configuration
Reimplemented from anoid::plugin::Rotation. Reimplemented in anoid::plugin::Dynamics, and anoid::plugin::SpinVelocity. Definition at line 10 of file spin.cc. References anoid::base::Ability::registerName(), and spin. |
|
|
Definition at line 26 of file spin.cc. References copyMatrix(), and anoid::plugin::Rotation::rotation. |
|
|
Definition at line 30 of file spin.cc. References copyMatrix(), and spin. |
|
|
Called when the main loop is ready for another step. Should be used to perform any calculations prior to movement. Reimplemented from anoid::base::Object. Reimplemented in anoid::plugin::Dynamics, and anoid::plugin::SpinVelocity. Definition at line 34 of file spin.cc. References copyMatrix(), matAdd(), oldRotation, anoid::plugin::Rotation::rotation, spin, and Vector(). |
|
|
Definition at line 16 of file spin.hh. Referenced by getOldRotation(), anoid::plugin::Dynamics::receive(), and update(). |
|
|
Definition at line 15 of file spin.hh. Referenced by getSpin(), init(), setSpin(), anoid::plugin::SpinVelocity::update(), and update(). |