wbc
JointState.hpp
Go to the documentation of this file.
1#ifndef WBC_TYPES_JOINT_STATE_HPP
2#define WBC_TYPES_JOINT_STATE_HPP
3
4#include <Eigen/Core>
5#include <limits>
6
7namespace wbc { namespace types {
8
14public:
15 Eigen::VectorXd position;
16 Eigen::VectorXd velocity;
17 Eigen::VectorXd acceleration;
18
19 void clear(){
20 position.resize(0);
21 velocity.resize(0);
22 acceleration.resize(0);
23 }
24
26 void resize(uint n){
27 position.setConstant(n,std::numeric_limits<double>::quiet_NaN());
28 velocity.setConstant(n,std::numeric_limits<double>::quiet_NaN());
29 acceleration.setConstant(n,std::numeric_limits<double>::quiet_NaN());
30 }
31};
32
33}
34}
35
36#endif
The JointState class describes either the state or the command for a set of joints,...
Definition JointState.hpp:13
Eigen::VectorXd acceleration
Definition JointState.hpp:17
void resize(uint n)
Definition JointState.hpp:26
void clear()
Definition JointState.hpp:19
Eigen::VectorXd position
Definition JointState.hpp:15
Eigen::VectorXd velocity
Definition JointState.hpp:16
Definition Contact.hpp:6
Definition ContactsAccelerationConstraint.cpp:3