Public Member Functions | Private Attributes | List of all members
rotation_estimator Class Reference

Public Member Functions

float3 get_theta ()
 
void process_accel (rs2_vector accel_data)
 
void process_gyro (rs2_vector gyro_data, double ts)
 

Private Attributes

float alpha = 0.98f
 
bool firstAccel = true
 
bool firstGyro = true
 
double last_ts_gyro = 0
 
float3 theta
 
std::mutex theta_mtx
 

Detailed Description

Definition at line 112 of file rs-motion.cpp.

Member Function Documentation

float3 rotation_estimator::get_theta ( )
inline

Definition at line 186 of file rs-motion.cpp.

void rotation_estimator::process_accel ( rs2_vector  accel_data)
inline

Definition at line 154 of file rs-motion.cpp.

void rotation_estimator::process_gyro ( rs2_vector  gyro_data,
double  ts 
)
inline

Definition at line 126 of file rs-motion.cpp.

Member Data Documentation

float rotation_estimator::alpha = 0.98f
private

Definition at line 119 of file rs-motion.cpp.

bool rotation_estimator::firstAccel = true
private

Definition at line 121 of file rs-motion.cpp.

bool rotation_estimator::firstGyro = true
private

Definition at line 120 of file rs-motion.cpp.

double rotation_estimator::last_ts_gyro = 0
private

Definition at line 123 of file rs-motion.cpp.

float3 rotation_estimator::theta
private

Definition at line 115 of file rs-motion.cpp.

std::mutex rotation_estimator::theta_mtx
private

Definition at line 116 of file rs-motion.cpp.


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


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