l500-motion.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include <vector>
7 #include <string>
8 #include "device.h"
9 #include "stream.h"
10 #include "l500/l500-device.h"
11 #include "../ds5/ds5-motion.h"
12 
13 namespace librealsense
14 {
15  class l500_motion : public virtual l500_device
16  {
17  public:
18  std::shared_ptr<synthetic_sensor> create_hid_device(std::shared_ptr<context> ctx,
19  const std::vector<platform::hid_device_info>& all_hid_infos);
20 
21  l500_motion(std::shared_ptr<context> ctx,
23 
24  std::vector<tagged_profile> get_profiles_tags() const override;
25 
27 
28  private:
29 
30  friend class l500_hid_sensor;
31 
33 
34  std::shared_ptr<mm_calib_handler> _mm_calib;
35  std::shared_ptr<lazy<ds::imu_intrinsic>> _accel_intrinsic;
36  std::shared_ptr<lazy<ds::imu_intrinsic>> _gyro_intrinsic;
37  std::shared_ptr<lazy<rs2_extrinsics>> _depth_to_imu; // Mechanical installation pose
38 
39  uint16_t _pid; // product PID
40 
41  protected:
42  std::shared_ptr<stream_interface> _accel_stream;
43  std::shared_ptr<stream_interface> _gyro_stream;
44  };
45 
46 }
std::shared_ptr< lazy< rs2_extrinsics > > _depth_to_imu
Definition: l500-motion.h:37
std::vector< tagged_profile > get_profiles_tags() const override
std::shared_ptr< lazy< ds::imu_intrinsic > > _accel_intrinsic
Definition: l500-motion.h:35
unsigned short uint16_t
Definition: stdint.h:79
std::shared_ptr< stream_interface > _gyro_stream
Definition: l500-motion.h:43
std::shared_ptr< lazy< ds::imu_intrinsic > > _gyro_intrinsic
Definition: l500-motion.h:36
GLboolean GLuint group
Definition: glext.h:5688
std::shared_ptr< mm_calib_handler > _mm_calib
Definition: l500-motion.h:34
std::shared_ptr< synthetic_sensor > create_hid_device(std::shared_ptr< context > ctx, const std::vector< platform::hid_device_info > &all_hid_infos)
Definition: l500-motion.cpp:96
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:42
l500_motion(std::shared_ptr< context > ctx, const platform::backend_device_group &group)
rs2_motion_device_intrinsic get_motion_intrinsics(rs2_stream stream) const
Motion device intrinsics: scale, bias, and variances.
Definition: rs_types.h:103
std::shared_ptr< stream_interface > _accel_stream
Definition: l500-motion.h:42
optional_value< uint8_t > _motion_module_device_idx
Definition: l500-motion.h:32


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