Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Public Member Functions | List of all members
rs2::pose_sensor Class Reference

#include <rs_sensor.hpp>

Inheritance diagram for rs2::pose_sensor:
rs2::sensor rs2::options

Public Member Functions

 pose_sensor (sensor s)
 
bool import_localization_map (const std::vector< uint8_t > &lmap_buf) const
 
std::vector< uint8_t > export_localization_map () const
 
bool set_static_node (const std::string &guid, const rs2_vector &pos, const rs2_quaternion &orient) const
 
bool get_static_node (const std::string &guid, rs2_vector &pos, rs2_quaternion &orient) const
 
 operator bool () const
 
 pose_sensor (std::shared_ptr< rs2_sensor > dev)
 
- Public Member Functions inherited from rs2::sensor
void open (const stream_profile &profile) const
 
bool supports (rs2_camera_info info) const
 
const char * get_info (rs2_camera_info info) const
 
void open (const std::vector< stream_profile > &profiles) const
 
void close () const
 
template<class T >
void start (T callback) const
 
void stop () const
 
template<class T >
void set_notifications_callback (T callback) const
 
std::vector< stream_profileget_stream_profiles () const
 
std::vector< filterget_recommended_filters () const
 
sensoroperator= (const std::shared_ptr< rs2_sensor > other)
 
sensoroperator= (const sensor &other)
 
 sensor ()
 
 operator bool () const
 
const std::shared_ptr< rs2_sensor > & get () const
 
template<class T >
bool is () const
 
template<class T >
as () const
 
 sensor (std::shared_ptr< rs2_sensor > dev)
 
 operator std::shared_ptr< rs2_sensor > ()
 
bool supports (rs2_option option) const
 
- Public Member Functions inherited from rs2::options
bool supports (rs2_option option) const
 
const char * get_option_description (rs2_option option) const
 
const char * get_option_name (rs2_option option) const
 
const char * get_option_value_description (rs2_option option, float val) const
 
float get_option (rs2_option option) const
 
option_range get_option_range (rs2_option option) const
 
void set_option (rs2_option option, float value) const
 
bool is_option_read_only (rs2_option option) const
 
std::vector< rs2_optionget_supported_options ()
 
optionsoperator= (const options &other)
 
 options (const options &other)
 
virtual ~options ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::options
 options (rs2_options *o=nullptr)
 
template<class T >
optionsoperator= (const T &dev)
 
- Protected Attributes inherited from rs2::sensor
friend context
 
friend device_list
 
friend device
 
friend device_base
 
friend roi_sensor
 
std::shared_ptr< rs2_sensor_sensor
 

Constructor & Destructor Documentation

◆ pose_sensor() [1/2]

rs2::pose_sensor::pose_sensor ( sensor  s)
inline

◆ pose_sensor() [2/2]

rs2::pose_sensor::pose_sensor ( std::shared_ptr< rs2_sensor dev)
inlineexplicit

Member Function Documentation

◆ export_localization_map()

std::vector<uint8_t> rs2::pose_sensor::export_localization_map ( ) const
inline

Extract SLAM localization map from device and store on host

Returns
- localization map blob

◆ get_static_node()

bool rs2::pose_sensor::get_static_node ( const std::string &  guid,
rs2_vector pos,
rs2_quaternion orient 
) const
inline

Retrieve a named reference frame anchored to a specific 3D pose

Parameters
[in]guidString to designate the reference (limited to 127 chars)
[out]pos3D Pose position in meters
[out]orient3D Pose attitude (quaternion)
Returns
true on success

◆ import_localization_map()

bool rs2::pose_sensor::import_localization_map ( const std::vector< uint8_t > &  lmap_buf) const
inline

Load SLAM localization map from host to device

Parameters
[in]lmap_buflocalization map blob
Returns
true on success

◆ operator bool()

rs2::pose_sensor::operator bool ( ) const
inline

◆ set_static_node()

bool rs2::pose_sensor::set_static_node ( const std::string &  guid,
const rs2_vector pos,
const rs2_quaternion orient 
) const
inline

Create a named reference frame anchored to a specific 3D pose

Parameters
[in]guidString to designate the reference (limited to 127 chars)
[in]pos3D Pose position in meters
[in]orient3D Pose attitude (quaternion)
Returns
true on success

The documentation for this class was generated from the following file: