wbc
JointCommand.hpp
Go to the documentation of this file.
1#ifndef WBC_TYPES_JOINT_COMMAND_HPP
2#define WBC_TYPES_JOINT_COMMAND_HPP
3
4#include <Eigen/Core>
5
6namespace wbc { namespace types {
7
9public:
10 Eigen::VectorXd position;
11 Eigen::VectorXd velocity;
12 Eigen::VectorXd acceleration;
13 Eigen::VectorXd effort;
14
15 void clear(){
16 position.resize(0);
17 velocity.resize(0);
18 acceleration.resize(0);
19 effort.resize(0);
20 }
21
23 void resize(uint n){
24 position.setConstant(n,std::numeric_limits<double>::quiet_NaN());
25 velocity.setConstant(n,std::numeric_limits<double>::quiet_NaN());
26 acceleration.setConstant(n,std::numeric_limits<double>::quiet_NaN());
27 effort.setConstant(n,std::numeric_limits<double>::quiet_NaN());
28 }
29};
30
31
39
40
41}
42}
43
44#endif // WBC_TYPES_JOINT_COMMAND_HPP
Definition JointCommand.hpp:8
Eigen::VectorXd acceleration
Definition JointCommand.hpp:12
void clear()
Definition JointCommand.hpp:15
Eigen::VectorXd effort
Definition JointCommand.hpp:13
void resize(uint n)
Definition JointCommand.hpp:23
Eigen::VectorXd position
Definition JointCommand.hpp:10
Eigen::VectorXd velocity
Definition JointCommand.hpp:11
Definition Contact.hpp:6
CommandMode
Definition JointCommand.hpp:32
@ VELOCITY
Definition JointCommand.hpp:35
@ UNSET
Definition JointCommand.hpp:33
@ POSITION
Definition JointCommand.hpp:34
@ EFFORT
Definition JointCommand.hpp:37
@ ACCELERATION
Definition JointCommand.hpp:36
Definition ContactsAccelerationConstraint.cpp:3