Tetrapod Project
joystick_controller_node.cpp
Go to the documentation of this file.
1
#include "ros/ros.h"
2
3
#include "
joystick_controller/joystick_controller.h
"
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
}
JoystickController
Definition:
joystick_controller.h:47
JoystickController::isControllerPaused
bool isControllerPaused()
Definition:
joystick_controller.h:137
JoystickController::publishTwistCommand
void publishTwistCommand()
Definition:
joystick_controller.cpp:339
JoystickController::initROS
void initROS()
Definition:
joystick_controller.cpp:23
joystick_controller.h
main
int main(int argc, char **argv)
Definition:
joystick_controller_node.cpp:5
catkin_ws
src
guidance
joystick_controller
src
joystick_controller_node.cpp
Generated by
1.9.1