MercurySDK
Software development kit for Mercury digital servos
group_handler.cpp
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright 2017 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 /* Author: Honghyun Kim */
18 
19 #if defined(__linux__)
20 #include "group_handler.h"
21 #elif defined(__APPLE__)
22 #include "group_handler.h"
23 #elif defined(_WIN32) || defined(_WIN64)
24 #define WINDLLEXPORT
25 #include "group_handler.h"
26 #elif defined(ARDUINO) || defined(__OPENCR__) || defined(__OPENCM904__)
27 #include "../../include/mercury_sdk/group_handler.h"
28 #endif
29 
30 using namespace mercury;
31 
33  : port_(port),
34  ph_(ph),
35  is_param_changed_(false),
36  param_(0)
37 {
38 
39 }
GroupHandler(PortHandler *port, PacketHandler *ph)
The class that inherits Protocol1PacketHandler class or Protocol2PacketHandler class.
The class for port control that inherits PortHandlerLinux, PortHandlerWindows, PortHandlerMac,...
Definition: port_handler.h:56