sensor.cpp
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.cpp
19  *
20  * Created on: 2016. 5. 11.
21  * Author: zerom
22  */
23 
24 #include "robotis_device/sensor.h"
25 
26 using namespace robotis_framework;
27 
28 Sensor::Sensor(int id, std::string model_name, float protocol_version)
29 {
30  this->id_ = id;
31  this->model_name_ = model_name;
32  this->port_name_ = "";
33  this->protocol_version_ = protocol_version;
34  ctrl_table_.clear();
35 
36  sensor_state_ = new SensorState();
37 
38  bulk_read_items_.clear();
39 }
std::string model_name_
Definition: device.h:42
Sensor(int id, std::string model_name, float protocol_version)
Definition: sensor.cpp:28
std::vector< ControlTableItem * > bulk_read_items_
Definition: device.h:46
std::string port_name_
Definition: device.h:43
SensorState * sensor_state_
Definition: sensor.h:41
std::map< std::string, ControlTableItem * > ctrl_table_
Definition: device.h:45


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