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
30 
31  ip_sensor(/* args */);
32  ~ip_sensor();
33 };
34 
36 {
37  is_enabled = false;
38 }
39 
std::map< rs2_option, float > sensors_option
Definition: ip_sensor.hh:24
~ip_sensor()
Definition: ip_sensor.hh:40
IRsRtsp * rtsp_client
Definition: ip_sensor.hh:29
bool is_enabled
Definition: ip_sensor.hh:26
std::list< long long int > active_streams_keys
Definition: ip_sensor.hh:22
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