dynamixel_workbench_wheel.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright (c) 2016, ROBOTIS CO., LTD.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * * Redistributions of source code must retain the above copyright notice, this
9 * list of conditions and the following disclaimer.
10 *
11 * * Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
14 *
15 * * Neither the name of ROBOTIS nor the names of its
16 * contributors may be used to endorse or promote products derived from
17 * this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *******************************************************************************/
30 
31 /* Author: Taehoon Lim (Darby) */
32 
33 #ifndef DYNAMIXEL_WORKBENCH_WHEEL_H
34 #define DYNAMIXEL_WORKBENCH_WHEEL_H
35 
36 #include <unistd.h>
37 #include <stdlib.h>
38 #include <fcntl.h> // FILE control
39 #include <termios.h> // Terminal IO
40 #include <stdio.h>
41 #include <ros/ros.h>
42 
43 #include <dynamixel_workbench_msgs/SetDirection.h>
44 
45 #define ESC_ASCII_VALUE 0x1b
46 #define FORWARD 0x77
47 #define BACKWARD 0x78
48 #define LEFT 0x61
49 #define RIGHT 0x64
50 #define STOPS 0x73
51 
53 {
55 {
56  public:
57  // ROS Server Client
59 
60  private:
61  // ROS NodeHandle
64  // ROS Parameters
65  bool is_debug_;
66  // Parameters
67 
68  public:
71  int getch(void);
72  int kbhit(void);
73 
74  private:
75  bool initDynamixelWorkbenchWheel(void);
77 };
78 }
79 
80 #endif //DYNAMIXEL_WORKBENCH_WHEEL_H


dynamixel_workbench_tutorials
Author(s): Darby Lim
autogenerated on Thu May 25 2017 02:38:50