Main Page
Namespaces
Classes
Files
File List
File Members
src
robotis_device
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
}
robotis_framework::Device::id_
uint8_t id_
Definition:
device.h:40
robotis_framework::Device::model_name_
std::string model_name_
Definition:
device.h:42
robotis_framework::Device::protocol_version_
float protocol_version_
Definition:
device.h:41
robotis_framework::Sensor::Sensor
Sensor(int id, std::string model_name, float protocol_version)
Definition:
sensor.cpp:28
robotis_framework::Device::bulk_read_items_
std::vector< ControlTableItem * > bulk_read_items_
Definition:
device.h:46
robotis_framework::Device::port_name_
std::string port_name_
Definition:
device.h:43
sensor.h
robotis_framework::Sensor::sensor_state_
SensorState * sensor_state_
Definition:
sensor.h:41
robotis_framework
Definition:
control_table_item.h:30
robotis_framework::SensorState
Definition:
sensor_state.h:33
robotis_framework::Device::ctrl_table_
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