30 #ifndef TOWR_VARIABLES_STATE_H_ 31 #define TOWR_VARIABLES_STATE_H_ 35 #include <Eigen/Dense> 60 explicit State(
int dim,
int n_derivatives);
61 virtual ~State() =
default;
109 static const int n_derivatives = 2;
114 explicit Node(
int dim = 0) :
State(dim, n_derivatives) {};
115 virtual ~
Node() =
default;
132 #endif // TOWR_VARIABLES std::vector< VectorXd > values_
e.g. position, velocity and acceleration, ...
Stores at state comprised of values and higher-order derivatives.
const VectorXd at(Dx deriv) const
Read the state value or it's derivatives by index.
const VectorXd p() const
read access to the zero-derivative of the state, e.g. position.
Can represent the 6Degree-of-Freedom floating base of a robot.
Node(int dim=0)
Constructs a dim - dimensional node (default zero-dimensional).
Node lin
linear position x,y,z and velocities.
State(int dim, int n_derivatives)
Constructs a state object.
const VectorXd v() const
read access to the first-derivative of the state, e.g. velocity.
const VectorXd a() const
read access to the second-derivative of the state, e.g. acceleration.
A node represents the state of a trajectory at a specific time.
Dx
< the values or derivative. For motions e.g. position, velocity, ...
Node ang
angular euler roll, pitch, yaw and rates.