12 ,
LinearFunction(f.getVariable().getTimeDerivative().getTimeDerivative(), f.getDimension())
22 throw std::runtime_error(
"[ocra::LinearTask::LinearTask] Input size of L doesn't match with dimension of f");
24 throw std::runtime_error(
"[ocra::LinearTask::LinearTask] Dimension of L doesn't match with dimension of f");
41 void SecondOrderLinearTask::updateb()
const 55 double max =
_b.cwiseAbs().maxCoeff();
85 std::stringstream vname;
92 void SecondOrderLinearTask::updateJacobian()
const 97 void SecondOrderLinearTask::doUpdateInputSizeBegin()
102 void SecondOrderLinearTask::doUpdateDimensionBegin(
int newDimension)
107 void SecondOrderLinearTask::doUpdateDimensionEnd(
int oldDimension)
111 assert((*v)(0).isBaseVariable() &&
"only base variables can be resized");
112 assert((*v)(1).isBaseVariable() &&
"only base variables can be resized");
118 void SecondOrderLinearTask::updateDimension(
int timestamp)
const Variable & getVariable() const
virtual Variable & getTimeDerivative()
Get the time derivative/primitive of the variable.
virtual const std::string & getName() const
void desinhibitPropagationFromb() const
Variable * createOutputVariable(Function &f)
const VectorXd & getValue() const
static SecondOrderLinearTask * createSecondOrderLinearTaskWithLinearLaw(Function *f, double weight0, double weight1)
size_t getNumberOfChildren() const
Returns 0 in BaseVariable and the number of childhoods otherwise.
DoubleDiagonalLinearFunction class.
Declaration file of the FunctionProperties class.
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
virtual void doUpdateDimensionEnd(int oldDimension)
Declaration file of the DoubleDiagonalLinearFunction class.
const IFunction< Ability >::return_type & get() const
const MatrixXd & getJacobian() const
void invalidateb(int timestamp)
This class represents a variable in a mathematical sense.
void inhibitPropagationFromb() const
const VectorXd & getValue() const
Declaration file of the SecondOrderLinearTask class.
void resize(size_t newSize)
void changeFunctionDimension(int newDimension)
A concatenation of base variables and other composite variables.
#define ocra_assert(ocra_expression)
SecondOrderLinearTask class.
virtual bool isBaseVariable() const
void disconnect(Derived &object, void(Base::*callbackToErase)(int)) const
Disconnect non-static method.
void connect(Derived &object, void(Base::*newCallback)(int)) const
Call this method to register a non-static method as a callback.
Implements a basic variable.