sot-torque-control  1.5.2
ImuOffsetCompensation Class Reference

#include <sot/torque_control/imu_offset_compensation.hh>

Inheritance diagram for ImuOffsetCompensation:
[legend]
Collaboration diagram for ImuOffsetCompensation:
[legend]

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW ImuOffsetCompensation (const std::string &name)
 
 DECLARE_SIGNAL_IN (accelerometer_in, dynamicgraph::Vector)
 
 DECLARE_SIGNAL_IN (gyrometer_in, dynamicgraph::Vector)
 raw accelerometer data More...
 
 DECLARE_SIGNAL_OUT (accelerometer_out, dynamicgraph::Vector)
 raw gyrometer data More...
 
 DECLARE_SIGNAL_OUT (gyrometer_out, dynamicgraph::Vector)
 compensated accelerometer data More...
 
void init (const double &dt)
 
void setGyroDCBlockerParameter (const double &alpha)
 
void update_offset (const double &duration)
 

Protected Member Functions

virtual void display (std::ostream &os) const
 compensated gyrometer data More...
 
void sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const char *file="", int line=0)
 
void update_offset_impl (int iter)
 

Protected Attributes

double m_a_gyro_DC_blocker
 total number of update cycles to perform More...
 
Vector3 m_acc_offset
 gyrometer offset More...
 
Vector3 m_acc_sum
 tmp variable to store the sum of the gyro measurements during update phase More...
 
float m_dt
 true if the entity has been successfully initialized More...
 
Vector3 m_gyro_offset
 
Vector3 m_gyro_sum
 accelerometer offset More...
 
bool m_initSucceeded
 
int m_update_cycles
 number of update cycles left More...
 
int m_update_cycles_left
 sampling time in seconds More...
 

Detailed Description

Definition at line 42 of file imu_offset_compensation.hh.

Constructor & Destructor Documentation

◆ ImuOffsetCompensation()

Member Function Documentation

◆ DECLARE_SIGNAL_IN() [1/2]

DECLARE_SIGNAL_IN ( accelerometer_in  ,
dynamicgraph::Vector   
)

◆ DECLARE_SIGNAL_IN() [2/2]

DECLARE_SIGNAL_IN ( gyrometer_in  ,
dynamicgraph::Vector   
)

raw accelerometer data

◆ DECLARE_SIGNAL_OUT() [1/2]

DECLARE_SIGNAL_OUT ( accelerometer_out  ,
dynamicgraph::Vector   
)

raw gyrometer data

◆ DECLARE_SIGNAL_OUT() [2/2]

DECLARE_SIGNAL_OUT ( gyrometer_out  ,
dynamicgraph::Vector   
)

compensated accelerometer data

◆ display()

void display ( std::ostream &  os) const
protectedvirtual

compensated gyrometer data

Definition at line 201 of file imu_offset_compensation.cpp.

◆ init()

◆ sendMsg()

void sendMsg ( const std::string &  msg,
MsgType  t = MSG_TYPE_INFO,
const char *  file = "",
int  line = 0 
)
inlineprotected

Definition at line 69 of file imu_offset_compensation.hh.

◆ setGyroDCBlockerParameter()

void setGyroDCBlockerParameter ( const double &  alpha)

◆ update_offset()

◆ update_offset_impl()

Member Data Documentation

◆ m_a_gyro_DC_blocker

double m_a_gyro_DC_blocker
protected

total number of update cycles to perform

Definition at line 78 of file imu_offset_compensation.hh.

Referenced by ImuOffsetCompensation::setGyroDCBlockerParameter().

◆ m_acc_offset

Vector3 m_acc_offset
protected

◆ m_acc_sum

Vector3 m_acc_sum
protected

tmp variable to store the sum of the gyro measurements during update phase

Definition at line 84 of file imu_offset_compensation.hh.

Referenced by ImuOffsetCompensation::ImuOffsetCompensation(), and ImuOffsetCompensation::update_offset_impl().

◆ m_dt

float m_dt
protected

true if the entity has been successfully initialized

Definition at line 75 of file imu_offset_compensation.hh.

Referenced by ImuOffsetCompensation::init(), and ImuOffsetCompensation::update_offset().

◆ m_gyro_offset

Vector3 m_gyro_offset
protected

filter parameter to remove DC from gyro online (should be close to <1.0 and equal to 1.0 for disabling)

Definition at line 80 of file imu_offset_compensation.hh.

Referenced by ImuOffsetCompensation::ImuOffsetCompensation(), ImuOffsetCompensation::init(), and ImuOffsetCompensation::update_offset_impl().

◆ m_gyro_sum

Vector3 m_gyro_sum
protected

◆ m_initSucceeded

bool m_initSucceeded
protected

Definition at line 74 of file imu_offset_compensation.hh.

Referenced by ImuOffsetCompensation::init().

◆ m_update_cycles

int m_update_cycles
protected

number of update cycles left

Definition at line 77 of file imu_offset_compensation.hh.

Referenced by ImuOffsetCompensation::update_offset(), and ImuOffsetCompensation::update_offset_impl().

◆ m_update_cycles_left

int m_update_cycles_left
protected

sampling time in seconds

Definition at line 76 of file imu_offset_compensation.hh.

Referenced by ImuOffsetCompensation::update_offset(), and ImuOffsetCompensation::update_offset_impl().


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