sensor_module.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright 2018 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 /*
18  * sensor_module.h
19  *
20  * Created on: 2016. 3. 30.
21  * Author: zerom
22  */
23 
24 #ifndef ROBOTIS_FRAMEWORK_COMMON_SENSOR_MODULE_H_
25 #define ROBOTIS_FRAMEWORK_COMMON_SENSOR_MODULE_H_
26 
27 
28 #include <map>
29 #include <string>
30 
31 #include "singleton.h"
32 #include "robotis_device/robot.h"
34 
35 namespace robotis_framework
36 {
37 
39 {
40 protected:
41  std::string module_name_;
42 
43 public:
44  std::map<std::string, double> result_;
45 
46  virtual ~SensorModule() { }
47 
48  std::string getModuleName() { return module_name_; }
49 
50  virtual void initialize(const int control_cycle_msec, Robot *robot) = 0;
51  virtual void process(std::map<std::string, Dynamixel *> dxls, std::map<std::string, Sensor *> sensors) = 0;
52 };
53 
54 }
55 
56 
57 #endif /* ROBOTIS_FRAMEWORK_COMMON_SENSOR_MODULE_H_ */
std::map< std::string, double > result_
Definition: sensor_module.h:44
virtual void initialize(const int control_cycle_msec, Robot *robot)=0
virtual void process(std::map< std::string, Dynamixel * > dxls, std::map< std::string, Sensor * > sensors)=0


robotis_framework_common
Author(s): Zerom , Kayman , SCH
autogenerated on Mon Jun 10 2019 14:35:11