A sparse MPC solver for walking motion generation.
footstep.h
Go to the documentation of this file.
1 
8 #ifndef FOOTSTEP_H
9 #define FOOTSTEP_H
10 
11 /****************************************
12  * INCLUDES
13  ****************************************/
14 
15 #include "rect_constraint.h"
16 #include "WMG.h"
17 
18 
19 
20 /****************************************
21  * TYPEDEFS
22  ****************************************/
23 
24 
27 
30 {
31  public:
32  footstep (
33  const double,
34  const Transform<double, 3>&,
35  const Vector3d&,
36  const unsigned int,
37  const fs_type,
38  const double *);
39  footstep (const footstep&);
40  ~footstep();
41 
42  void changePosture(const double *, const bool);
43  double x();
44  double y();
45 
46 
47 
49  double angle;
50 
52  double ca;
53 
55  double sa;
56 
58  unsigned int time_period;
59 
61  unsigned int time_left;
62 
65 
67  Vector3d ZMPref;
68 
69 
70  Transform<double, 3>* posture;
71 };
73 #endif /*FOOTSTEP_H*/
double angle
Angle (relative to the world frame) of a footstep [rad.].
Definition: footstep.h:49
void changePosture(const double *, const bool)
Correct position of the footstep.
Definition: footstep.cpp:106
fs_type type
type of the step.
Definition: footstep.h:64
Vector3d ZMPref
Reference ZMP point.
Definition: footstep.h:67
Transform< double, 3 > * posture
Definition: footstep.h:70
~footstep()
Destructor.
Definition: footstep.cpp:75
unsigned int time_left
the amount of time left in this support (=time_period on initialization)
Definition: footstep.h:61
double sa
sin(angle).
Definition: footstep.h:55
Defines a footstep.
Definition: footstep.h:29
Defines rectangular constraints (of the form D*z <= d) for the ZMP.
double x()
Definition: footstep.cpp:84
double y()
Definition: footstep.cpp:93
double ca
cos(angle).
Definition: footstep.h:52
footstep(const double, const Transform< double, 3 > &, const Vector3d &, const unsigned int, const fs_type, const double *)
Defines a footstep at a given position with a given orientation.
Definition: footstep.cpp:32
fs_type
Definition: WMG.h:42
unsigned int time_period
the period of time spent in this support
Definition: footstep.h:58