31 #include <dynamic_reconfigure/server.h> 34 #include <ubiquity_motor/PIDConfig.h> 38 #include <boost/thread.hpp> 42 static const double BILLION = 1000000000.0;
52 }
else if (level == 2) {
54 }
else if (level == 4) {
56 }
else if (level == 8) {
58 }
else if (level == 16) {
61 ROS_ERROR(
"Unsupported dynamic_reconfigure level %u", level);
65 int main(
int argc,
char* argv[]) {
79 dynamic_reconfigure::Server<ubiquity_motor::PIDConfig> server;
80 dynamic_reconfigure::Server<ubiquity_motor::PIDConfig>::CallbackType
f;
83 server.setCallback(f);
93 throw std::runtime_error(
"Firmware not reporting its version");
104 for (
int i = 0; i < 5; i++) {
111 elapsed = last_time - current_time;
112 last_time = current_time;
double controller_loop_rate
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int32_t pid_moving_buffer_size
static FirmwareParams firmware_params
void setParams(FirmwareParams firmware_params)
void PID_update_callback(const ubiquity_motor::PIDConfig &config, uint32_t level)
static CommsParams serial_params
static NodeParams node_params
int main(int argc, char *argv[])
void update(const ros::Time &time, const ros::Duration &period, bool reset_controllers=false)
static const double BILLION