balance_gazebo_control.h
Go to the documentation of this file.
1 /*********************************************************************
2  * Copyright (c) 2015 Robosavvy Ltd.
3  * Author: Vitor Matos
4  *
5  *********************************************************************/
6 
7 #ifndef RSV_BALANCE_GAZEBO_CONTROL_BALANCE_GAZEBO_CONTROL_H
8 #define RSV_BALANCE_GAZEBO_CONTROL_BALANCE_GAZEBO_CONTROL_H
9 
11 
12 namespace balance_control
13 {
14 
15 enum STATES
16 {
18  dx,
21 };
22 
23 enum INPUTS
24 {
27 };
28 
35 {
36  public:
38 
39  void resetControl();
40  void stepControl(double dt, const double (&x_desired)[4], const double (&y_fbk)[4]);
41  double *getControl();
42 
43  private:
44  double t;
45  double x_hat[4];
46  double dx_hat[4];
47  double x_reference[4];
48  double x_r[4];
49  double x_adjust[4];
50  double u_output[2];
51 };
52 
53 } // namespace balance_control
54 
55 #endif // RSV_BALANCE_GAZEBO_CONTROL_BALANCE_GAZEBO_CONTROL_H
double * getControl()
Set up the output array.
void stepControl(double dt, const double(&x_desired)[4], const double(&y_fbk)[4])
Integrates control and models.
void resetControl()
Resets all state and control variables.


rsv_balance_gazebo_control
Author(s): Vitor Matos
autogenerated on Mon Jun 10 2019 15:06:39