single_dynamixel_controller.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright 2016 ROBOTIS CO., LTD.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *******************************************************************************/
16 
17 /* Authors: Taehun Lim (Darby) */
18 
19 #ifndef DYNAMIXEL_WORKBENCH_SINGLE_DYNAMIXEL_CONTROLLER_H
20 #define DYNAMIXEL_WORKBENCH_SINGLE_DYNAMIXEL_CONTROLLER_H
21 
22 #include <fcntl.h> // FILE control
23 #include <termios.h> // Terminal IO
24 #include <ros/ros.h>
25 
26 #include "dynamixel_workbench_msgs/DynamixelCommand.h"
27 #include "dynamixel_workbench_msgs/GetDynamixelInfo.h"
28 #include "message_header.h"
29 
31 {
32 #define ESC_ASCII_VALUE 0x1b
33 #define SPACEBAR_ASCII_VALUE 0x20
34 #define ENTER_ASCII_VALUE 0x0a
35 
37 {
38  private:
39  // ROS NodeHandle
41 
42  // ROS Parameters
43 
44  // ROS Topic Publisher
45 
46  // ROS Topic Subscriber
47 
48  // ROS Service Server
49 
50  // ROS Service Client
53 
54  // Dynamixel Workbench Parameters
55 
56  public:
59  void viewManagerMenu(void);
60  bool controlLoop(void);
61 
62  private:
65 
66  int getch(void);
67  int kbhit(void);
68 
69  bool sendCommandMsg(std::string cmd, std::string addr = "", int64_t value = 0);
70 
71 };
72 }
73 
74 #endif //DYNAMIXEL_WORKBENCH_SINGLE_DYNAMIXEL_CONTROLLER_H
bool sendCommandMsg(std::string cmd, std::string addr="", int64_t value=0)


dynamixel_workbench_single_manager
Author(s): Darby Lim
autogenerated on Mon Jun 10 2019 13:06:13