task-angular-momentum-equality.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017 CNRS
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_am_equality_hpp__
19 #define __invdyn_task_am_equality_hpp__
20 
21 #include "tsid/math/fwd.hpp"
25 
26 #include <pinocchio/multibody/model.hpp>
27 #include <pinocchio/multibody/data.hpp>
28 
29 namespace tsid {
30 namespace tasks {
31 
32 class TaskAMEquality : public TaskMotion {
33  public:
34  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
35 
36  typedef math::Index Index;
42 
43  TaskAMEquality(const std::string& name, RobotWrapper& robot);
44 
45  int dim() const override;
46 
48  Data& data) override;
49 
50  const ConstraintBase& getConstraint() const override;
51 
52  void setReference(const TrajectorySample& ref);
53  const TrajectorySample& getReference() const override;
54 
57 
58  const Vector3& momentum_error() const;
59  const Vector3& momentum() const;
60  const Vector& momentum_ref() const;
61  const Vector& dmomentum_ref() const;
62 
63  const Vector3& Kp();
64  const Vector3& Kd();
65  void Kp(ConstRefVector Kp);
66  void Kd(ConstRefVector Kp);
67 
68  protected:
73 
78 };
79 
80 } // namespace tasks
81 } // namespace tsid
82 
83 #endif // ifndef __invdyn_task_am_equality_hpp__
tsid::tasks::TaskAMEquality::dmomentum_ref
const Vector & dmomentum_ref() const
Definition: task-angular-momentum-equality.cpp:79
tsid::tasks::TaskAMEquality::getReference
const TrajectorySample & getReference() const override
Definition: task-angular-momentum-equality.cpp:64
demo_quadruped.v
v
Definition: demo_quadruped.py:80
tsid::trajectories::TrajectorySample
Definition: trajectories/trajectory-base.hpp:33
pinocchio::DataTpl
tsid::tasks::TaskAMEquality::m_constraint
ConstraintEquality m_constraint
Definition: task-angular-momentum-equality.hpp:77
tsid::tasks::TaskAMEquality::m_ref
TrajectorySample m_ref
Definition: task-angular-momentum-equality.hpp:76
tsid::math::ConstraintEquality
Definition: math/constraint-equality.hpp:26
tsid::tasks::TaskAMEquality::getDesiredMomentumDerivative
const Vector3 & getDesiredMomentumDerivative() const
Definition: task-angular-momentum-equality.cpp:66
tsid::tasks::TaskAMEquality::Index
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Index Index
Definition: task-angular-momentum-equality.hpp:36
tsid::tasks::TaskAMEquality::momentum
const Vector3 & momentum() const
Definition: task-angular-momentum-equality.cpp:76
task-motion.hpp
tsid::math::ConstraintBase
Abstract class representing a linear equality/inequality constraint. Equality constraints are represe...
Definition: constraint-base.hpp:35
tsid::tasks::TaskAMEquality::momentum_ref
const Vector & momentum_ref() const
Definition: task-angular-momentum-equality.cpp:77
tsid::tasks::TaskAMEquality::m_drift
Vector3 m_drift
Definition: task-angular-momentum-equality.hpp:74
tsid::tasks::TaskAMEquality::m_L_error
Vector3 m_L_error
Definition: task-angular-momentum-equality.hpp:71
tsid::tasks::TaskAMEquality::compute
const ConstraintBase & compute(double t, ConstRefVector q, ConstRefVector v, Data &data) override
Definition: task-angular-momentum-equality.cpp:87
setup.data
data
Definition: setup.in.py:48
tsid::tasks::TaskAMEquality::m_dL_error
Vector3 m_dL_error
Definition: task-angular-momentum-equality.hpp:71
tsid::tasks::TaskAMEquality::m_L
Vector3 m_L
Definition: task-angular-momentum-equality.hpp:75
demo_quadruped.robot
robot
Definition: demo_quadruped.py:51
tsid::tasks::TaskAMEquality::getdMomentum
Vector3 getdMomentum(ConstRefVector dv) const
Definition: task-angular-momentum-equality.cpp:70
constraint-equality.hpp
tsid::tasks::TaskAMEquality::Vector
math::Vector Vector
Definition: task-angular-momentum-equality.hpp:38
tsid::tasks::TaskAMEquality::TaskAMEquality
TaskAMEquality(const std::string &name, RobotWrapper &robot)
Definition: task-angular-momentum-equality.cpp:29
tsid::tasks::TaskAMEquality::getConstraint
const ConstraintBase & getConstraint() const override
Definition: task-angular-momentum-equality.cpp:83
trajectory-base.hpp
demo_quadruped.q
q
Definition: demo_quadruped.py:74
tsid::tasks::TaskAMEquality::ConstraintEquality
math::ConstraintEquality ConstraintEquality
Definition: task-angular-momentum-equality.hpp:40
tsid::tasks::TaskAMEquality::m_Kd
Vector3 m_Kd
Definition: task-angular-momentum-equality.hpp:70
tsid::tasks::TaskAMEquality::Kp
const Vector3 & Kp()
Definition: task-angular-momentum-equality.cpp:46
tsid::math::Index
std::size_t Index
Definition: math/fwd.hpp:53
tsid::tasks::TaskAMEquality::momentum_error
const Vector3 & momentum_error() const
Definition: task-angular-momentum-equality.cpp:74
tsid::tasks::TaskAMEquality::m_Kp
Vector3 m_Kp
Definition: task-angular-momentum-equality.hpp:69
fwd.hpp
tsid::tasks::TaskAMEquality
Definition: task-angular-momentum-equality.hpp:32
tsid::tasks::TaskAMEquality::Matrix6x
pinocchio::Data::Matrix6x Matrix6x
Definition: task-angular-momentum-equality.hpp:41
tsid::tasks::TaskMotion
Definition: task-motion.hpp:26
tsid::tasks::TaskAMEquality::Kd
const Vector3 & Kd()
Definition: task-angular-momentum-equality.cpp:48
tsid::tasks::TaskAMEquality::setReference
void setReference(const TrajectorySample &ref)
Definition: task-angular-momentum-equality.cpp:62
tsid::math::Vector
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: math/fwd.hpp:35
tsid
Definition: bindings/python/constraint/constraint-bound.cpp:21
tsid::tasks::TaskAMEquality::m_dL
Vector3 m_dL
Definition: task-angular-momentum-equality.hpp:75
tsid::robots::RobotWrapper
Wrapper for a robot based on pinocchio.
Definition: robots/robot-wrapper.hpp:37
tsid::tasks::TaskBase::name
const std::string & name() const
Definition: task-base.cpp:25
pinocchio::DataTpl::Matrix6x
Eigen::Matrix< Scalar, 6, Eigen::Dynamic, Options > Matrix6x
t
Transform3f t
tsid::tasks::TaskAMEquality::Vector3
math::Vector3 Vector3
Definition: task-angular-momentum-equality.hpp:39
tsid::tasks::TaskBase::ConstRefVector
math::ConstRefVector ConstRefVector
Definition: task-base.hpp:39
tsid::math::Vector3
Eigen::Matrix< Scalar, 3, 1 > Vector3
Definition: math/fwd.hpp:40
tsid::tasks::TaskAMEquality::dim
int dim() const override
Return the dimension of the task. \info should be overloaded in the child class.
Definition: task-angular-momentum-equality.cpp:41
tsid::tasks::TaskAMEquality::TrajectorySample
trajectories::TrajectorySample TrajectorySample
Definition: task-angular-momentum-equality.hpp:37
tsid::tasks::TaskAMEquality::m_dL_des
Vector3 m_dL_des
Definition: task-angular-momentum-equality.hpp:72


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Thu Apr 3 2025 02:47:16