wbc
JointLimits.hpp
Go to the documentation of this file.
1#ifndef WBC_JOINT_LIMITS_HPP
2#define WBC_JOINT_LIMITS_HPP
3
4#include <Eigen/Core>
5
6namespace wbc { namespace types {
7
8class Limits{
9public:
10 void clear(){
11 position.resize(0);
12 velocity.resize(0);
13 acceleration.resize(0);
14 effort.resize(0);
15 }
16 void resize(uint n){
17 position.resize(n);
18 velocity.resize(n);
19 acceleration.resize(n);
20 effort.resize(n);
21 }
22 Eigen::VectorXd position;
23 Eigen::VectorXd velocity;
24 Eigen::VectorXd acceleration;
25 Eigen::VectorXd effort;
26
27};
28
30public:
31
32 void clear(){
33 min.clear();
34 max.clear();
35 }
36
37 void resize(uint n){
38 min.resize(n);
39 max.resize(n);
40 }
41
44};
45
46}
47}
48
49#endif
Definition JointLimits.hpp:29
Limits min
Definition JointLimits.hpp:42
void resize(uint n)
Definition JointLimits.hpp:37
Limits max
Definition JointLimits.hpp:43
void clear()
Definition JointLimits.hpp:32
Definition JointLimits.hpp:8
Eigen::VectorXd velocity
Definition JointLimits.hpp:23
void clear()
Definition JointLimits.hpp:10
Eigen::VectorXd effort
Definition JointLimits.hpp:25
Eigen::VectorXd acceleration
Definition JointLimits.hpp:24
void resize(uint n)
Definition JointLimits.hpp:16
Eigen::VectorXd position
Definition JointLimits.hpp:22
Definition Contact.hpp:6
Definition ContactsAccelerationConstraint.cpp:3