Tetrapod Project
state_estimator_node.cpp
Go to the documentation of this file.
1
#include "ros/ros.h"
2
#include <ros/console.h>
3
4
#include "
state_estimator/state_estimator.h
"
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
}
StateEstimator
Definition:
state_estimator.h:14
StateEstimator::UpdateStates
void UpdateStates()
Definition:
state_estimator.cpp:81
StateEstimator::PublishBodyTwistState
void PublishBodyTwistState()
Definition:
state_estimator.cpp:110
state_estimator.h
main
int main(int argc, char **argv)
Definition:
state_estimator_node.cpp:7
catkin_ws
src
navigation
state_estimator
src
state_estimator_node.cpp
Generated by
1.9.1