dynamicgraph::sot::Feature1D Class Reference

Simple test: the task is defined to be e_2 = .5 . e'.e, with e the mother task. The jacobian is then J_2 = e'.J, J being the jacobian of the mother task. More...

#include <sot/core/feature-1d.hh>

Inheritance diagram for dynamicgraph::sot::Feature1D:
dynamicgraph::sot::FeatureAbstract dynamicgraph::sot::FeatureReferenceHelper< Feature1D > dynamicgraph::Entity noncopyable

List of all members.

Public Member Functions

virtual const std::string & getClassName (void) const
virtual void display (std::ostream &os) const
 Display the information related to this 1D implementation.
Output signals
 Feature1D (const std::string &name)
 Default constructor.
virtual ~Feature1D (void)
 Default destructor.
virtual unsigned int & getDimension (unsigned int &dim, int time)
 Get the dimension of the feature.
Methods to trigger computation related to this feature.
virtual ml::VectorcomputeError (ml::Vector &res, int time)
 Compute the error between the desired value and the value itself.
virtual ml::MatrixcomputeJacobian (ml::Matrix &res, int time)
 Compute the Jacobian of the value according to the robot state..
Dealing with the reference value to be reach with this feature.
 DECLARE_REFERENCE_FUNCTIONS (Feature1D)

Public Attributes

Input signals
dg::SignalPtr< ml::Vector, int > errorSIN
 Input for the error.
dg::SignalPtr< ml::Matrix, int > jacobianSIN
 Input for the Jacobian.

Static Public Attributes

static const std::string CLASS_NAME

Detailed Description

Simple test: the task is defined to be e_2 = .5 . e'.e, with e the mother task. The jacobian is then J_2 = e'.J, J being the jacobian of the mother task.


Constructor & Destructor Documentation

dynamicgraph::sot::Feature1D::Feature1D ( const std::string &  name)

Default constructor.

virtual dynamicgraph::sot::Feature1D::~Feature1D ( void  ) [inline, virtual]

Default destructor.


Member Function Documentation

virtual ml::Vector& dynamicgraph::sot::Feature1D::computeError ( ml::Vector res,
int  time 
) [virtual]

Compute the error between the desired value and the value itself.

Implements dynamicgraph::sot::FeatureAbstract.

virtual ml::Matrix& dynamicgraph::sot::Feature1D::computeJacobian ( ml::Matrix res,
int  time 
) [virtual]

Compute the Jacobian of the value according to the robot state..

Implements dynamicgraph::sot::FeatureAbstract.

virtual void dynamicgraph::sot::Feature1D::display ( std::ostream &  os) const [virtual]

Display the information related to this 1D implementation.

Reimplemented from dynamicgraph::Entity.

virtual const std::string& dynamicgraph::sot::Feature1D::getClassName ( void  ) const [inline, virtual]

Returns the name of the class.

Reimplemented from dynamicgraph::sot::FeatureAbstract.

virtual unsigned int& dynamicgraph::sot::Feature1D::getDimension ( unsigned int &  dim,
int  time 
) [virtual]

Get the dimension of the feature.

Implements dynamicgraph::sot::FeatureAbstract.


Member Data Documentation

const std::string dynamicgraph::sot::Feature1D::CLASS_NAME [static]

Field storing the class name.

Reimplemented from dynamicgraph::sot::FeatureAbstract.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines