tsid  1.8.0
Efficient Task Space Inverse Dynamics for Multi-body Systems based on Pinocchio
task-actuation-equality.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2021 CNRS INRIA LORIA
3 //
4 // This file is part of tsid
5 // tsid is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 // tsid is distributed in the hope that it will be
10 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // General Lesser Public License for more details. You should have
13 // received a copy of the GNU Lesser General Public License along with
14 // tsid If not, see
15 // <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef __invdyn_task_actuation_equality_hpp__
19 #define __invdyn_task_actuation_equality_hpp__
20 
23 
24 namespace tsid {
25 namespace tasks {
27  public:
28  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
29 
30  typedef math::Index Index;
35 
36  TaskActuationEquality(const std::string& name, RobotWrapper& robot);
37 
38  int dim() const override;
39 
41  Data& data) override;
42 
43  const ConstraintBase& getConstraint() const override;
44 
46  const Vector& getReference() const;
47 
49  const Vector& getWeightVector() const;
50 
51  const Vector& mask() const;
52  void mask(const Vector& mask);
53 
54  protected:
60 };
61 } // namespace tasks
62 } // namespace tsid
63 
64 #endif // ifndef __invdyn_task_actuation_equality_hpp__
Abstract class representing a linear equality/inequality constraint. Equality constraints are represe...
Definition: constraint-base.hpp:35
Definition: constraint-equality.hpp:26
Wrapper for a robot based on pinocchio.
Definition: robot-wrapper.hpp:37
Definition: task-actuation-equality.hpp:26
void setWeightVector(math::ConstRefVector weights)
Definition: task-actuation-equality.cpp:84
pinocchio::Data Data
Definition: task-actuation-equality.hpp:34
const Vector & getWeightVector() const
Definition: task-actuation-equality.cpp:98
TaskActuationEquality(const std::string &name, RobotWrapper &robot)
Definition: task-actuation-equality.cpp:26
VectorXi m_activeAxes
Definition: task-actuation-equality.hpp:56
math::VectorXi VectorXi
Definition: task-actuation-equality.hpp:32
const Vector & getReference() const
Definition: task-actuation-equality.cpp:80
ConstraintEquality m_constraint
Definition: task-actuation-equality.hpp:59
Vector m_ref
Definition: task-actuation-equality.hpp:57
math::Vector Vector
Definition: task-actuation-equality.hpp:31
void setReference(math::ConstRefVector ref)
Definition: task-actuation-equality.cpp:68
const Vector & mask() const
Definition: task-actuation-equality.cpp:35
Vector m_mask
Definition: task-actuation-equality.hpp:55
const ConstraintBase & compute(double t, ConstRefVector q, ConstRefVector v, Data &data) override
Definition: task-actuation-equality.cpp:106
Vector m_weights
Definition: task-actuation-equality.hpp:58
int dim() const override
Return the dimension of the task. \info should be overloaded in the child class.
Definition: task-actuation-equality.cpp:64
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Index Index
Definition: task-actuation-equality.hpp:30
const ConstraintBase & getConstraint() const override
Definition: task-actuation-equality.cpp:102
math::ConstraintEquality ConstraintEquality
Definition: task-actuation-equality.hpp:33
Definition: task-actuation.hpp:25
const std::string & name() const
Definition: task-base.cpp:25
math::ConstRefVector ConstRefVector
Definition: task-base.hpp:39
pinocchio::Data Data
Definition: inverse-dynamics-formulation-acc-force.cpp:30
std::size_t Index
Definition: fwd.hpp:53
const Eigen::Ref< const Vector > ConstRefVector
Definition: fwd.hpp:48
Eigen::VectorXi VectorXi
Definition: fwd.hpp:37
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: fwd.hpp:35
Definition: constraint-bound.hpp:25