Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
ethernet
ip_sensor.hh
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3
4
#pragma once
5
6
#include "
software-device.h
"
7
#include <
librealsense2/rs.hpp
>
8
9
#include <list>
10
11
// Holds ip sensor data.
12
// 1. sw sensor
13
// 2. relative streams
14
// 3. state -> on/off
15
16
class
ip_sensor
17
{
18
public
:
19
//todo: remove smart ptr here
20
std::shared_ptr<rs2::software_sensor>
sw_sensor
;
21
22
std::list<long long int>
active_streams_keys
;
23
24
std::map<rs2_option, float>
sensors_option
;
25
26
bool
is_enabled
;
27
28
//TODO: get smart ptr from rtsp client creator
29
IRsRtsp
*
rtsp_client
;
30
31
ip_sensor
(
/* args */
);
32
~ip_sensor
();
33
};
34
35
ip_sensor::ip_sensor
(
/* args */
)
36
{
37
is_enabled
=
false
;
38
}
39
40
ip_sensor::~ip_sensor
() {}
ip_sensor::sensors_option
std::map< rs2_option, float > sensors_option
Definition:
ip_sensor.hh:24
ip_sensor::~ip_sensor
~ip_sensor()
Definition:
ip_sensor.hh:40
ip_sensor
Definition:
ip_sensor.hh:16
rs.hpp
ip_sensor::rtsp_client
IRsRtsp * rtsp_client
Definition:
ip_sensor.hh:29
ip_sensor::is_enabled
bool is_enabled
Definition:
ip_sensor.hh:26
ip_sensor::ip_sensor
ip_sensor()
Definition:
ip_sensor.hh:35
IRsRtsp
Definition:
IRsRtsp.h:21
ip_sensor::active_streams_keys
std::list< long long int > active_streams_keys
Definition:
ip_sensor.hh:22
software-device.h
ip_sensor::sw_sensor
std::shared_ptr< rs2::software_sensor > sw_sensor
Definition:
ip_sensor.hh:20
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:17