Tetrapod Project
state_estimator_node.cpp
Go to the documentation of this file.
1 #include "ros/ros.h"
2 #include <ros/console.h>
3 
5 
6 
7 int main(int argc, char **argv)
8 {
9  int controller_frequency = 200;
10 
11  double gait_period = 0.4;
12 
13  StateEstimator state_estimator(controller_frequency, gait_period);
14 
15  ros::Rate control_rate(controller_frequency);
16 
17  while(ros::ok())
18  {
19  ros::spinOnce();
20  state_estimator.UpdateStates();
21  //state_estimator.PrintStates();
22  state_estimator.PublishBodyTwistState();
23  control_rate.sleep();
24  }
25 
26 
27  return 0;
28 }
void PublishBodyTwistState()
int main(int argc, char **argv)