tsid 1.9.0
Efficient Task Space Inverse Dynamics for Multi-body Systems based on Pinocchio
Loading...
Searching...
No Matches
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
25namespace tsid {
26namespace tasks {
27
29 public:
30 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
31
37 typedef pinocchio::Data Data;
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:22
Definition constraint-inequality.hpp:13
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:21
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:50
const Vector & getLowerBounds() const
Definition task-actuation-bounds.cpp:46
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:68
const ConstraintBase & compute(double t, ConstRefVector q, ConstRefVector v, Data &data) override
Definition task-actuation-bounds.cpp:72
int dim() const override
Return the dimension of the task. \info should be overloaded in the child class.
Definition task-actuation-bounds.cpp:44
void setBounds(ConstRefVector lower, ConstRefVector upper)
Definition task-actuation-bounds.cpp:54
TaskActuationBounds(const std::string &name, RobotWrapper &robot)
Definition task-actuation-bounds.cpp:14
TaskActuation(const std::string &name, RobotWrapper &robot)
Definition task-actuation.cpp:11
robots::RobotWrapper RobotWrapper
Definition task-base.hpp:41
Definition trajectory-base.hpp:33
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