Project

General

Profile

Statistics
| Branch: | Revision:

root / scout / scoutsim / src / scout_teleop_userinput.h @ 43811241

History | View | Annotate | Download (453 Bytes)

1 86222358 roboclub
#ifndef _TELEOP_INPUT_
2
#define _TELEOP_INPUT_
3
4
#include <ros/ros.h>
5
#include <signal.h>
6
#include <termios.h>
7
#include <stdio.h>
8
9
#include <scoutsim/teleop_input.h>
10
11
#define QUEUE_SIZE 10
12
13
class TeleopInput{
14
    public:
15
        TeleopInput(std::string scoutname);
16
        ~TeleopInput();
17
        void keyLoop();
18
    private:
19
        int kfd;
20
        struct termios cooked, raw;
21
        ros::Publisher input_pub;
22
        ros::NodeHandle node;
23
};
24
25
#endif