motion.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3 #pragma once
4 
5 
6 #include "streaming.h"
7 
8 namespace librealsense
9 {
11  {
12  public:
13  virtual rs2_motion_device_intrinsic get_intrinsics() const = 0;
14  virtual void set_intrinsics(std::function<rs2_motion_device_intrinsic()> calc) = 0;
15  };
16 
18 
20  {
21  //Empty for now
22  };
23 
25 
26  class pose_sensor_interface : public recordable<pose_sensor_interface>
27  {
28  public:
29  virtual bool export_relocalization_map(std::vector<uint8_t>& lmap_buf) const = 0;
30  virtual bool import_relocalization_map(const std::vector<uint8_t>& lmap_buf) const = 0;
31  virtual bool set_static_node(const std::string& guid, const float3& pos, const float4& orient_quat) const = 0;
32  virtual bool get_static_node(const std::string& guid, float3& pos, float4& orient_quat) const = 0;
33  virtual bool remove_static_node(const std::string& guid) const = 0;
34  virtual ~pose_sensor_interface() = default;
35  };
37 
38  class wheel_odometry_interface : public recordable<wheel_odometry_interface>
39  {
40  public:
41  virtual bool load_wheel_odometery_config(const std::vector<uint8_t>& odometry_config_buf) const = 0;
42  virtual bool send_wheel_odometry(uint8_t wo_sensor_id, uint32_t frame_num, const float3& translational_velocity) const = 0;
43  virtual ~wheel_odometry_interface() = default;
44  };
46 
48  {
49  public:
50  virtual void enable_loopback(const std::string& input) = 0;
51  virtual void disable_loopback() = 0;
52  virtual bool is_enabled() const = 0;
53  virtual void connect_controller(const std::array<uint8_t, 6>& mac_address) = 0;
54  virtual void disconnect_controller(int id) = 0;
55  virtual ~tm2_extensions() = default;
56  };
58 
60  {
61  public:
63  virtual void set_extrinsics(const stream_profile_interface& from_profile, const stream_profile_interface& to_profile, const rs2_extrinsics& extr) = 0;
64  virtual void set_motion_device_intrinsics(const stream_profile_interface& stream_profile, const rs2_motion_device_intrinsic& intr) = 0;
65  virtual void reset_to_factory_calibration() = 0;
66  virtual void write_calibration() = 0;
67  };
69 }
GLsizei const GLchar *const * string
unsigned char uint8_t
Definition: stdint.h:78
virtual rs2_motion_device_intrinsic get_intrinsics() const =0
unsigned int uint32_t
Definition: stdint.h:80
virtual void set_intrinsics(std::function< rs2_motion_device_intrinsic()> calc)=0
struct rs2_motion_device_intrinsic rs2_motion_device_intrinsic
Motion device intrinsics: scale, bias, and variances.
Cross-stream extrinsics: encodes the topology describing how the different devices are oriented...
Definition: rs_sensor.h:96
GLenum GLenum GLenum input
Definition: glext.h:10805
stream_profile to_profile(const stream_profile_interface *sp)
Definition: src/stream.h:185
rs2_extrinsics extr
Definition: test-pose.cpp:258
Video stream intrinsics.
Definition: rs_types.h:58
float rs2_vector::* pos
Motion device intrinsics: scale, bias, and variances.
Definition: rs_types.h:103
MAP_EXTENSION(RS2_EXTENSION_POINTS, librealsense::points)


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