tsid 1.9.0
Efficient Task Space Inverse Dynamics for Multi-body Systems based on Pinocchio
Loading...
Searching...
No Matches
task-joint-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_joint_bounds_hpp__
19#define __invdyn_task_joint_bounds_hpp__
20
23
24namespace tsid {
25namespace tasks {
26
27class TaskJointBounds : public TaskMotion {
28 public:
29 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
30
33 typedef pinocchio::Data Data;
34
35 TaskJointBounds(const std::string& name, RobotWrapper& robot, double dt);
36
37 int dim() const override;
38
39 const ConstraintBase& compute(const double t, ConstRefVector q,
40 ConstRefVector v, Data& data) override;
41
42 const ConstraintBase& getConstraint() const override;
43
44 void setTimeStep(double dt);
49 const Vector& getVelocityLowerBounds() const;
50 const Vector& getVelocityUpperBounds() const;
51
52 virtual void setMask(math::ConstRefVector mask) override;
53
54 protected:
59 double m_dt;
60 int m_nv, m_na;
61};
62
63} // namespace tasks
64} // namespace tsid
65
66#endif // ifndef __invdyn_task_joint_bounds_hpp__
Abstract class representing a linear equality/inequality constraint. Equality constraints are represe...
Definition constraint-base.hpp:22
Definition constraint-bound.hpp:13
robots::RobotWrapper RobotWrapper
Definition task-base.hpp:41
math::ConstraintBound ConstraintBound
Definition task-joint-bounds.hpp:32
Vector m_v_ub
Definition task-joint-bounds.hpp:55
Vector m_a_ub
Definition task-joint-bounds.hpp:56
void setTimeStep(double dt)
Definition task-joint-bounds.cpp:50
ConstraintBound m_constraint
Definition task-joint-bounds.hpp:58
double m_dt
Definition task-joint-bounds.hpp:59
const Vector & getVelocityUpperBounds() const
Definition task-joint-bounds.cpp:48
Vector m_a_lb
Definition task-joint-bounds.hpp:56
const Vector & getVelocityLowerBounds() const
Definition task-joint-bounds.cpp:46
void setVelocityBounds(ConstRefVector lower, ConstRefVector upper)
Definition task-joint-bounds.cpp:55
TaskJointBounds(const std::string &name, RobotWrapper &robot, double dt)
Definition task-joint-bounds.cpp:14
Vector m_ddq_min_due_to_vel
Definition task-joint-bounds.hpp:57
int m_na
Definition task-joint-bounds.hpp:60
Vector m_ddq_max_due_to_vel
Definition task-joint-bounds.hpp:57
const ConstraintBase & getConstraint() const override
Definition task-joint-bounds.cpp:83
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Vector Vector
Definition task-joint-bounds.hpp:31
int m_nv
Definition task-joint-bounds.hpp:60
const Vector & getAccelerationUpperBounds() const
Definition task-joint-bounds.cpp:42
void setAccelerationBounds(ConstRefVector lower, ConstRefVector upper)
Definition task-joint-bounds.cpp:69
pinocchio::Data Data
Definition task-joint-bounds.hpp:33
const ConstraintBase & compute(const double t, ConstRefVector q, ConstRefVector v, Data &data) override
Definition task-joint-bounds.cpp:89
int dim() const override
Return the dimension of the task. \info should be overloaded in the child class.
Definition task-joint-bounds.cpp:36
virtual void setMask(math::ConstRefVector mask) override
Definition task-joint-bounds.cpp:87
const Vector & getAccelerationLowerBounds() const
Definition task-joint-bounds.cpp:38
Vector m_v_lb
Definition task-joint-bounds.hpp:55
TaskMotion(const std::string &name, RobotWrapper &robot)
Definition task-motion.cpp:13
std::string name(const LieGroupGenericTpl< LieGroupCollection > &lg)
const Eigen::Ref< const Vector > ConstRefVector
Definition fwd.hpp:35
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition fwd.hpp:22
Definition fwd.hpp:9
Definition constraint-bound.hpp:25