18 #ifndef __invdyn_task_joint_posVelAcc_bounds_hpp__ 19 #define __invdyn_task_joint_posVelAcc_bounds_hpp__ 24 #include <tsid/deprecated.hh> 41 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
75 bool impose_velocity_bounds,
76 bool impose_viability_bounds,
77 bool impose_acceleration_bounds);
110 TSID_DEPRECATED
const Vector &
mask()
const;
111 TSID_DEPRECATED
void mask(
const Vector &
mask);
190 #endif // ifndef __invdyn_task_joint_bounds_hpp__ double m_two_dt_sq
Definition: task-joint-posVelAcc-bounds.hpp:157
Vector m_q_plus_dt_dq
Definition: task-joint-posVelAcc-bounds.hpp:171
int m_nv
Definition: task-joint-posVelAcc-bounds.hpp:119
void setAccelerationBounds(ConstRefVector upper)
Definition: task-joint-posVelAcc-bounds.cpp:188
Vector m_ddqUBPos
Definition: task-joint-posVelAcc-bounds.hpp:138
virtual void setMask(math::ConstRefVector mask)
Definition: task-joint-posVelAcc-bounds.cpp:126
Vector m_b_2
Definition: task-joint-posVelAcc-bounds.hpp:174
Vector m_qMin
Definition: task-joint-posVelAcc-bounds.hpp:129
Vector m_ddqLBPos
Definition: task-joint-posVelAcc-bounds.hpp:137
Vector m_qa
Definition: task-joint-posVelAcc-bounds.hpp:124
Vector m_ddqMin_q2
Definition: task-joint-posVelAcc-bounds.hpp:161
double m_dt
Definition: task-joint-posVelAcc-bounds.hpp:117
Vector m_two_ddqMax
Definition: task-joint-posVelAcc-bounds.hpp:168
const std::string & name() const
Definition: task-base.cpp:30
double m_eps
Definition: task-joint-posVelAcc-bounds.hpp:127
Vector m_ddqUBVel
Definition: task-joint-posVelAcc-bounds.hpp:142
Vector m_lb
Definition: task-joint-posVelAcc-bounds.hpp:184
bool m_impose_position_bounds
Definition: task-joint-posVelAcc-bounds.hpp:149
bool m_verbose
Definition: task-joint-posVelAcc-bounds.hpp:118
Vector m_dt_ddqMax_dt
Definition: task-joint-posVelAcc-bounds.hpp:169
const ConstraintBase & compute(const double t, ConstRefVector q, ConstRefVector v, Data &data)
Definition: task-joint-posVelAcc-bounds.cpp:200
const Vector & getPositionUpperBounds() const
Definition: task-joint-posVelAcc-bounds.cpp:158
Vector m_ddq_2
Definition: task-joint-posVelAcc-bounds.hpp:176
bool m_impose_acceleration_bounds
Definition: task-joint-posVelAcc-bounds.hpp:152
Vector m_ddqUBAcc
Definition: task-joint-posVelAcc-bounds.hpp:144
Vector m_ub
Definition: task-joint-posVelAcc-bounds.hpp:183
Vector m_dqMinViab
Definition: task-joint-posVelAcc-bounds.hpp:134
VectorXi m_activeAxes
Definition: task-joint-posVelAcc-bounds.hpp:122
Vector m_ddqLBAcc
Definition: task-joint-posVelAcc-bounds.hpp:143
double m_two_a
Definition: task-joint-posVelAcc-bounds.hpp:172
Vector m_ddqMax
Definition: task-joint-posVelAcc-bounds.hpp:132
const Vector & getVelocityBounds() const
Definition: task-joint-posVelAcc-bounds.cpp:152
Vector m_ddqMin_q3
Definition: task-joint-posVelAcc-bounds.hpp:159
Definition: task-motion.hpp:28
Vector m_mask
Definition: task-joint-posVelAcc-bounds.hpp:121
math::VectorXi VectorXi
Definition: task-joint-posVelAcc-bounds.hpp:46
TSID_DEPRECATED const Vector & mask() const
Definition: task-joint-posVelAcc-bounds.cpp:115
Vector m_ddqLB
Definition: task-joint-posVelAcc-bounds.hpp:146
Vector m_qMax
Definition: task-joint-posVelAcc-bounds.hpp:130
Vector m_minus_dq_over_dt
Definition: task-joint-posVelAcc-bounds.hpp:162
Vector m_ddqLBVia
Definition: task-joint-posVelAcc-bounds.hpp:139
Vector m_ddqUB
Definition: task-joint-posVelAcc-bounds.hpp:147
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Vector Vector
Definition: task-joint-posVelAcc-bounds.hpp:43
void computeAccLimitsFromPosLimits(ConstRefVector q, ConstRefVector dq, bool verbose=true)
Definition: task-joint-posVelAcc-bounds.cpp:287
const Vector & getAccelerationBounds() const
Definition: task-joint-posVelAcc-bounds.cpp:149
bool m_impose_viability_bounds
Definition: task-joint-posVelAcc-bounds.hpp:151
void isStateViable(ConstRefVector q, ConstRefVector dq, bool verbose=true)
Definition: task-joint-posVelAcc-bounds.cpp:228
math::ConstRefVector ConstRefVector
Definition: task-base.hpp:42
Vector m_c_2
Definition: task-joint-posVelAcc-bounds.hpp:179
Vector m_dqa
Definition: task-joint-posVelAcc-bounds.hpp:125
Vector m_ddqLBVel
Definition: task-joint-posVelAcc-bounds.hpp:141
TaskJointPosVelAccBounds(const std::string &name, RobotWrapper &robot, double dt, bool verbose=true)
Definition: task-joint-posVelAcc-bounds.cpp:37
Vector m_dq_square
Definition: task-joint-posVelAcc-bounds.hpp:170
void setPositionBounds(ConstRefVector lower, ConstRefVector upper)
Definition: task-joint-posVelAcc-bounds.cpp:171
Vector m_dqMax
Definition: task-joint-posVelAcc-bounds.hpp:131
Vector m_ddq_1
Definition: task-joint-posVelAcc-bounds.hpp:175
pinocchio::Data Data
Definition: task-joint-posVelAcc-bounds.hpp:47
void setVelocityBounds(ConstRefVector upper)
Definition: task-joint-posVelAcc-bounds.cpp:181
const Eigen::Ref< const Vector > ConstRefVector
Definition: fwd.hpp:50
Vector m_dqMaxViab
Definition: task-joint-posVelAcc-bounds.hpp:135
Vector m_c_1
Definition: task-joint-posVelAcc-bounds.hpp:177
Vector m_ddqMax_q3
Definition: task-joint-posVelAcc-bounds.hpp:158
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: fwd.hpp:37
Vector m_dt_dq
Definition: task-joint-posVelAcc-bounds.hpp:166
ConstraintInequality m_constraint
Definition: task-joint-posVelAcc-bounds.hpp:116
Definition: constraint-bound.hpp:28
Wrapper for a robot based on pinocchio.
Definition: robot-wrapper.hpp:40
Vector m_delta_1
Definition: task-joint-posVelAcc-bounds.hpp:178
void setTimeStep(double dt)
Definition: task-joint-posVelAcc-bounds.cpp:161
Definition: constraint-inequality.hpp:28
Vector m_delta_2
Definition: task-joint-posVelAcc-bounds.hpp:180
int m_na
Definition: task-joint-posVelAcc-bounds.hpp:119
Vector m_dt_two_dq
Definition: task-joint-posVelAcc-bounds.hpp:167
void computeAccLimitsFromViability(ConstRefVector q, ConstRefVector dq, bool verbose=true)
Definition: task-joint-posVelAcc-bounds.cpp:346
int dim() const
Return the dimension of the task. should be overloaded in the child class.
Definition: task-joint-posVelAcc-bounds.cpp:146
void computeAccLimits(ConstRefVector q, ConstRefVector dq, bool verbose=true)
Definition: task-joint-posVelAcc-bounds.cpp:399
double m_dt_square
Definition: task-joint-posVelAcc-bounds.hpp:165
Vector m_ddqUBVia
Definition: task-joint-posVelAcc-bounds.hpp:140
math::ConstraintInequality ConstraintInequality
Definition: task-joint-posVelAcc-bounds.hpp:45
const ConstraintBase & getConstraint() const
Definition: task-joint-posVelAcc-bounds.cpp:195
Definition: constraint-bound.hpp:26
Definition: task-joint-posVelAcc-bounds.hpp:38
Vector m_viabViol
Definition: task-joint-posVelAcc-bounds.hpp:154
Eigen::VectorXi VectorXi
Definition: fwd.hpp:39
math::ConstraintBound ConstraintBound
Definition: task-joint-posVelAcc-bounds.hpp:44
Abstract class representing a linear equality/inequality constraint. Equality constraints are represe...
Definition: constraint-base.hpp:36
const Vector & getPositionLowerBounds() const
Definition: task-joint-posVelAcc-bounds.cpp:155
void setImposeBounds(bool impose_position_bounds, bool impose_velocity_bounds, bool impose_viability_bounds, bool impose_acceleration_bounds)
Definition: task-joint-posVelAcc-bounds.cpp:216
bool m_impose_velocity_bounds
Definition: task-joint-posVelAcc-bounds.hpp:150
Vector m_b_1
Definition: task-joint-posVelAcc-bounds.hpp:173
void setVerbose(bool verbose)
Definition: task-joint-posVelAcc-bounds.cpp:167
Vector m_ddqMax_q2
Definition: task-joint-posVelAcc-bounds.hpp:160