first_order_plant.h
Go to the documentation of this file.
1 #include "ros/ros.h"
2 
3 // Header for 'plant_msg.msg'
4 #include "lyap_control/plant_msg.h"
5 
6 // Header for controller_msg.msg
7 #include "lyap_control/controller_msg.h"
8 
10 // Variables -- Make changes here.
12 
13 static const int num_states=1;
14 static const int num_inputs=1;
15 
16 // Initial conditions
17 static const double x_IC [num_states] = {4.7};
18 static const double t_IC = 0.0;
19 static const double setpoint [num_states] = {-1.0};
20 
21 double delta_t = 0.001; // control period in seconds
22 
23 // Global so it can be passed from the callback fxn to main
24 static double u[num_inputs] = {0};
25 
26 
28 // Functions
30 
31 void chatterCallback(const lyap_control::controller_msg& u_msg);
void chatterCallback(const lyap_control::controller_msg &u_msg)
lyap_control::controller_msg u_msg
static const int num_inputs
static const int num_states
static const double x_IC[num_states]
double delta_t
static double u[num_inputs]
static const double setpoint[num_states]
static const double t_IC


lyap_control
Author(s): Andy Zelenak
autogenerated on Mon Jun 10 2019 13:50:32