4 #include <boost/numeric/ublas/vector.hpp> 6 #include <boost/numeric/ublas/matrix.hpp> 9 #include <boost/math/special_functions/fpclassify.hpp> 12 #include "lyap_control/plant_msg.h" 13 #include "lyap_control/controller_msg.h" 28 static const double g = 1.0;
38 dxdt[0] = 0.1*x[0]+
u[0];
39 dxdt[1] = 2.*x[1]+u[1];
void calculate_u(ublas_vector &D, ublas_vector &open_loop_dx_dt, const double &V_dot_target, boost::numeric::ublas::matrix< double > &dx_dot_du)
static const double low_saturation_limit[]
void chatterCallback(const lyap_control::plant_msg &msg)
boost::numeric::ublas::vector< double > ublas_vector
static const double high_saturation_limit[]
ublas_vector x(num_states)
ublas_vector u(num_inputs)
void calculate_V_and_damping(double &V_dot_target)
void initial_error_check(const lyap_control::plant_msg &msg)
void model_definition(const ublas_vector &x, ublas_vector &dxdt, const double t)
void calculate_dx_dot_du(boost::numeric::ublas::matrix< double > &dx_dot_du, ublas_vector &open_loop_dx_dt)
static const double switching_threshold
static const double V_dot_target_initial_dB