Tetrapod Project
joystick_controller_node.cpp
Go to the documentation of this file.
1 #include "ros/ros.h"
2 
4 
5 int main(int argc, char **argv)
6 {
7  JoystickController controller;
8 
9  controller.initROS();
10 
11  ROS_INFO("Initialization complete");
12 
13  ros::Rate publish_rate(50.0);
14 
15  while(ros::ok())
16  {
17  ros::spinOnce();
18  if(!controller.isControllerPaused())
19  {
20  controller.publishTwistCommand();
21  }
22  publish_rate.sleep();
23  }
24 
25  return 0;
26 }
int main(int argc, char **argv)