tsid 1.9.0
Efficient Task Space Inverse Dynamics for Multi-body Systems based on Pinocchio
Loading...
Searching...
No Matches
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
24namespace tsid {
25namespace tasks {
27 public:
28 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
29
34 typedef pinocchio::Data Data;
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:22
Definition constraint-equality.hpp:13
void setWeightVector(math::ConstRefVector weights)
Definition task-actuation-equality.cpp:71
pinocchio::Data Data
Definition task-actuation-equality.hpp:34
const Vector & getWeightVector() const
Definition task-actuation-equality.cpp:85
TaskActuationEquality(const std::string &name, RobotWrapper &robot)
Definition task-actuation-equality.cpp:13
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:67
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:55
const Vector & mask() const
Definition task-actuation-equality.cpp:22
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:93
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:51
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:89
math::ConstraintEquality ConstraintEquality
Definition task-actuation-equality.hpp:33
TaskActuation(const std::string &name, RobotWrapper &robot)
Definition task-actuation.cpp:11
robots::RobotWrapper RobotWrapper
Definition task-base.hpp:41
std::string name(const LieGroupGenericTpl< LieGroupCollection > &lg)
std::size_t Index
Definition fwd.hpp:40
const Eigen::Ref< const Vector > ConstRefVector
Definition fwd.hpp:35
Eigen::VectorXi VectorXi
Definition fwd.hpp:24
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition fwd.hpp:22
Definition fwd.hpp:9
Definition constraint-bound.hpp:25