RsDevice.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 <librealsense2/rs.hpp>
7 #include "RsUsageEnvironment.h"
8 #include "RsSensor.hh"
9 #include <map>
10 
11 class RsDevice
12 {
13 public:
14  RsDevice(UsageEnvironment* t_env);
15  ~RsDevice();
16  std::vector<RsSensor>& getSensors()
17  {
18  return m_sensors;
19  }
20 
21  static int getPhysicalSensorUniqueKey(rs2_stream stream_type, int sensors_index);
22 
23  // sensor index
24  // map for stream pysical sensor
25  // key is generated by rs2_stream+index: depth=1,color=2,irl=3,irr=4
26  // todo: make smart_ptr
27  std::map<std::pair<int, int>, rs2_extrinsics> minimal_extrinsics_map;
28 
30  {
31  return m_device;
32  }
33 
34 private:
36  std::vector<RsSensor> m_sensors;
37 
38  UsageEnvironment* env;
39 };
std::vector< RsSensor > & getSensors()
Definition: RsDevice.hh:16
std::map< std::pair< int, int >, rs2_extrinsics > minimal_extrinsics_map
Definition: RsDevice.hh:27
std::vector< RsSensor > m_sensors
Definition: RsDevice.hh:36
~RsDevice()
Definition: RsDevice.cpp:59
static int getPhysicalSensorUniqueKey(rs2_stream stream_type, int sensors_index)
Definition: RsDevice.cpp:9
rs2::device m_device
Definition: RsDevice.hh:35
RsDevice(UsageEnvironment *t_env)
Definition: RsDevice.cpp:14
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:42
UsageEnvironment * env
Definition: RsDevice.hh:38
Cross-stream extrinsics: encodes the topology describing how the different devices are oriented...
Definition: rs_sensor.h:96
rs2::device getDevice()
Definition: RsDevice.hh:29


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:41