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

#include <rs_sensor.hpp>

Inheritance diagram for rs2::wheel_odometer:
rs2::sensor rs2::options

Public Member Functions

 wheel_odometer (sensor s)
 
bool load_wheel_odometery_config (const std::vector< uint8_t > &odometry_config_buf) const
 
bool send_wheel_odometry (uint8_t wo_sensor_id, uint32_t frame_num, const rs2_vector &translational_velocity)
 
 operator bool () const
 
 wheel_odometer (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< stream_profileget_active_streams () 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_value get_option_value (rs2_option option_id) const
 
option_range get_option_range (rs2_option option) const
 
void set_option (rs2_option option, float value) const
 
void set_option_value (option_value const &value) const
 
bool is_option_read_only (rs2_option option) const
 
void on_options_changed (std::function< void(const options_list &) > callback) const
 
std::vector< rs2_optionget_supported_options ()
 
options_list get_supported_option_values ()
 
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

◆ wheel_odometer() [1/2]

rs2::wheel_odometer::wheel_odometer ( sensor  s)
inline

◆ wheel_odometer() [2/2]

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

Member Function Documentation

◆ load_wheel_odometery_config()

bool rs2::wheel_odometer::load_wheel_odometery_config ( const std::vector< uint8_t > &  odometry_config_buf) const
inline

Load Wheel odometer settings from host to device

Parameters
[in]odometry_config_bufodometer configuration/calibration blob serialized from jsom file
Returns
true on success

◆ operator bool()

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

◆ send_wheel_odometry()

bool rs2::wheel_odometer::send_wheel_odometry ( uint8_t  wo_sensor_id,
uint32_t  frame_num,
const rs2_vector translational_velocity 
)
inline

Send wheel odometry data for each individual sensor (wheel)

Parameters
[in]wo_sensor_id- Zero-based index of (wheel) sensor with the same type within device
[in]frame_num- Monotonocally increasing frame number, managed per sensor.
[in]translational_velocity- Translational velocity in meter/sec
Returns
true on success

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