tsid  1.8.0
Efficient Task Space Inverse Dynamics for Multi-body Systems based on Pinocchio
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  int dim() const override;
42 
44  Data& data) override;
45 
46  const ConstraintBase& getConstraint() const override;
47 
48  void setBounds(ConstRefVector lower, ConstRefVector upper);
49  const Vector& getLowerBounds() const;
50  const Vector& getUpperBounds() const;
51 
52  const Vector& mask() const;
53  void mask(const Vector& mask);
54 
55  protected:
59 };
60 
61 } // namespace tasks
62 } // namespace tsid
63 
64 #endif // ifndef __invdyn_task_actuation_bounds_hpp__
Abstract class representing a linear equality/inequality constraint. Equality constraints are represe...
Definition: constraint-base.hpp:35
Definition: constraint-inequality.hpp:26
Wrapper for a robot based on pinocchio.
Definition: robot-wrapper.hpp:37
Definition: task-actuation-bounds.hpp:28
trajectories::TrajectorySample TrajectorySample
Definition: task-actuation-bounds.hpp:33
pinocchio::Data Data
Definition: task-actuation-bounds.hpp:37
math::VectorXi VectorXi
Definition: task-actuation-bounds.hpp:35
const Vector & mask() const
Definition: task-actuation-bounds.cpp:34
math::ConstraintInequality ConstraintInequality
Definition: task-actuation-bounds.hpp:36
VectorXi m_activeAxes
Definition: task-actuation-bounds.hpp:57
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Index Index
Definition: task-actuation-bounds.hpp:32
math::Vector Vector
Definition: task-actuation-bounds.hpp:34
const Vector & getUpperBounds() const
Definition: task-actuation-bounds.cpp:63
const Vector & getLowerBounds() const
Definition: task-actuation-bounds.cpp:59
Vector m_mask
Definition: task-actuation-bounds.hpp:56
ConstraintInequality m_constraint
Definition: task-actuation-bounds.hpp:58
const ConstraintBase & getConstraint() const override
Definition: task-actuation-bounds.cpp:81
const ConstraintBase & compute(double t, ConstRefVector q, ConstRefVector v, Data &data) override
Definition: task-actuation-bounds.cpp:85
int dim() const override
Return the dimension of the task. \info should be overloaded in the child class.
Definition: task-actuation-bounds.cpp:57
void setBounds(ConstRefVector lower, ConstRefVector upper)
Definition: task-actuation-bounds.cpp:67
TaskActuationBounds(const std::string &name, RobotWrapper &robot)
Definition: task-actuation-bounds.cpp:27
Definition: task-actuation.hpp:25
const std::string & name() const
Definition: task-base.cpp:25
math::ConstRefVector ConstRefVector
Definition: task-base.hpp:39
Definition: trajectory-base.hpp:33
pinocchio::Data Data
Definition: inverse-dynamics-formulation-acc-force.cpp:30
std::size_t Index
Definition: fwd.hpp:53
Eigen::VectorXi VectorXi
Definition: fwd.hpp:37
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: fwd.hpp:35
Definition: constraint-bound.hpp:25