Simple PID controller with dynamic reconfigure. More...
#include <pid/controller.h>
Go to the source code of this file.
Functions | |
void | get_params (double in, double &value, double &scale) |
int | main (int argc, char **argv) |
void | pid_enable_callback (const std_msgs::Bool &pid_enable_msg) |
void | plant_state_callback (const std_msgs::Float64 &state_msg) |
void | print_parameters () |
void | reconfigure_callback (pid::PidConfig &config, uint32_t level) |
void | setpoint_callback (const std_msgs::Float64 &setpoint_msg) |
bool | validate_parameters () |
Simple PID controller with dynamic reconfigure.
Copyright (c) 2015, Andy Zelenak
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file controller.cpp.
void get_params | ( | double | in, |
double & | value, | ||
double & | scale | ||
) |
Definition at line 175 of file controller.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 258 of file controller.cpp.
void pid_enable_callback | ( | const std_msgs::Bool & | pid_enable_msg | ) |
Definition at line 170 of file controller.cpp.
void plant_state_callback | ( | const std_msgs::Float64 & | state_msg | ) |
Definition at line 48 of file controller.cpp.
void print_parameters | ( | ) |
Definition at line 235 of file controller.cpp.
void reconfigure_callback | ( | pid::PidConfig & | config, |
uint32_t | level | ||
) |
Definition at line 200 of file controller.cpp.
void setpoint_callback | ( | const std_msgs::Float64 & | setpoint_msg | ) |
Definition at line 43 of file controller.cpp.
bool validate_parameters | ( | ) |
Definition at line 221 of file controller.cpp.