tasks/task-actuation-bounds.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_actuation_bounds_hpp__
19 #define __invdyn_task_actuation_bounds_hpp__
20 
24 
25 namespace tsid {
26 namespace tasks {
27 
29  public:
30  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
31 
32  typedef math::Index Index;
38 
39  TaskActuationBounds(const std::string& name, RobotWrapper& robot);
40 
41  virtual ~TaskActuationBounds() {}
42 
43  int dim() const;
44 
45  const ConstraintBase& compute(const double t, ConstRefVector q,
46  ConstRefVector v, Data& data);
47 
48  const ConstraintBase& getConstraint() const;
49 
50  void setBounds(ConstRefVector lower, ConstRefVector upper);
51  const Vector& getLowerBounds() const;
52  const Vector& getUpperBounds() const;
53 
54  const Vector& mask() const;
55  void mask(const Vector& mask);
56 
57  protected:
58  Vector m_mask;
59  VectorXi m_activeAxes;
60  ConstraintInequality m_constraint;
61 };
62 
63 } // namespace tasks
64 } // namespace tsid
65 
66 #endif // ifndef __invdyn_task_actuation_bounds_hpp__
std::size_t Index
Definition: math/fwd.hpp:53
math::ConstraintInequality ConstraintInequality
const std::string & name() const
Definition: task-base.cpp:25
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: math/fwd.hpp:35
data
Definition: setup.in.py:48
TaskActuationBounds(const std::string &name, RobotWrapper &robot)
int dim() const
Return the dimension of the task. should be overloaded in the child class.
void setBounds(ConstRefVector lower, ConstRefVector upper)
math::ConstRefVector ConstRefVector
Definition: task-base.hpp:39
const ConstraintBase & compute(const double t, ConstRefVector q, ConstRefVector v, Data &data)
trajectories::TrajectorySample TrajectorySample
Wrapper for a robot based on pinocchio.
Transform3f t
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Index Index
Eigen::VectorXi VectorXi
Definition: math/fwd.hpp:37


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Sun Jul 2 2023 02:21:51