controller_globals.h
Go to the documentation of this file.
1 
2 #pragma once
3 
5 // These variables are global b/c a ROS callback only takes 1 argument
7 
8 static double t=0; // time will be updated by listening to the 'plant' ROS topic
9 static double V=0; //current Lyapunov value
10 static double V_initial=0;
11 static int first_callback=1; // 1 signals that the callback has not been run yet. Triggers setup calcs
12 
13 // Read the size of a plant_msg
14 lyap_control::plant_msg temp_plant_msg; // Just to read the msg size
15 const static int num_states = temp_plant_msg.x.size();
16 
17 // Message variable for the control effort message
18 lyap_control::controller_msg u_msg;
19 // Read the size of a 'controller' message
20 const static int num_inputs = u_msg.u.size();
21 
24 ublas_vector u(num_inputs);
25 
26 // Convert user-specified aggressiveness from log to linear value
27 static double V_dot_target_initial = 0;
static const int num_inputs
static double t
static double V_dot_target_initial
boost::numeric::ublas::vector< double > ublas_vector
Definition: controller.h:5
lyap_control::controller_msg u_msg
ublas_vector x(num_states)
ublas_vector u(num_inputs)
static double V_initial
static double V
static int first_callback
ublas_vector setpoint(num_states)
lyap_control::plant_msg temp_plant_msg
static const int num_states


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