SCL
1.0
Standard Control Library : Control, dynamics, physics, and simulation
|
#include <CServo.hpp>
Public Member Functions | |
bool | computeControlForces () |
CServo () | |
virtual | ~CServo () |
bool | init (const std::string &arg_ctrl_name, SServo *arg_data) |
void | reset () |
virtual const std::string & | getType () const |
virtual const std::string & | getName () const |
virtual bool | hasBeenInit () const |
Public Attributes | |
std::string | name_ |
sBool | has_been_init_ |
Protected Attributes | |
std::string | type_ |
Private Attributes | |
SServo * | data_ |
Computes the main servo loop's data:
Main servo loop:
NOTE: The servo DOES NOT update each individual task's torques. The controller (above) does that.
|
inline |
Default constructor. Does nothing.
|
inlinevirtual |
Default destructor. Does nothing.
bool scl::CServo::computeControlForces | ( | ) |
Computes the command forces (in generalized coordinate; usually joint torques) by accepting the latest forces from the task servos and filtering them through their range spaces.
Assumes that the range spaces are computed by a controller implementation (orthogonal task-levels or any other style)
|
inlinevirtualinherited |
Get the object's type
|
inlinevirtualinherited |
Get the object's type
|
inlinevirtualinherited |
Get the object's type
bool scl::CServo::init | ( | const std::string & | arg_ctrl_name, |
SServo * | arg_data | ||
) |
Initializes a servo. NOTE : The arg_data pointer should point to a parent controller's SControllerMultiTask object
void scl::CServo::reset | ( | ) |
Resets the servo to its default state (so that an new controller may be attached to it).
|
private |
All the data a servo loop should ever need see doc/ControllerDesign.eps for more details.
This a pointer because the actual data structure is stored in the SControllerMultiTask (so that the graphics, for instance, can access control torques).
|
inherited |
Whether the object is ready for use
|
inherited |
The object's name
|
protectedinherited |
The object's type. Should only be set by the constructor