Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
ImuSensor Class Reference

#include <imuSensor.hpp>

Inheritance diagram for ImuSensor:
Inheritance graph
Collaboration diagram for ImuSensor:
Collaboration graph

Public Member Functions

 ImuSensor (double rate, double deadTime)
 
void readConfig (ConfigElement &config)
 
ImuData process (ImuData &in, Eigen::Vector3d &trans, Eigen::Vector3d &rot, double time)
 
bool RunTick (ImuData &in, Eigen::Vector3d &alpha, double time)
 
ImuData applyError (ImuData input)
 
std::string getName ()
 
- Public Member Functions inherited from SensorBase< ImuData >
double getRate ()
 
ImuData getOldest ()
 
bool availableDeadTime (double time)
 
bool sampleReady (double time)
 
void registerSampling ()
 
Eigen::Vector3d getPosition ()
 
Eigen::Vector3d getOrientation ()
 

Private Attributes

double error_mean_acc
 
double error_sigma_acc
 
double error_mean_rot
 
double error_sigma_rot
 
std::string name
 
std::string frame
 

Additional Inherited Members

- Protected Attributes inherited from SensorBase< ImuData >
Eigen::Vector3d position
 
Eigen::Vector3d orientation
 
double rate
 
double lastSampleTime
 
double deadTime
 
std::queue< ImuDatadeadTimeQueue
 
int numFrames
 

Detailed Description

Definition at line 11 of file imuSensor.hpp.

Constructor & Destructor Documentation

◆ ImuSensor()

ImuSensor::ImuSensor ( double  rate,
double  deadTime 
)

Definition at line 3 of file imuSensor.cpp.

Member Function Documentation

◆ applyError()

ImuData ImuSensor::applyError ( ImuData  input)

Definition at line 42 of file imuSensor.cpp.

Here is the caller graph for this function:

◆ getName()

std::string ImuSensor::getName ( )

Definition at line 68 of file imuSensor.cpp.

◆ process()

ImuData ImuSensor::process ( ImuData in,
Eigen::Vector3d &  trans,
Eigen::Vector3d &  rot,
double  time 
)

◆ readConfig()

void ImuSensor::readConfig ( ConfigElement config)

Definition at line 10 of file imuSensor.cpp.

Here is the call graph for this function:

◆ RunTick()

bool ImuSensor::RunTick ( ImuData in,
Eigen::Vector3d &  alpha,
double  time 
)

Definition at line 29 of file imuSensor.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ error_mean_acc

double ImuSensor::error_mean_acc
private

Definition at line 27 of file imuSensor.hpp.

◆ error_mean_rot

double ImuSensor::error_mean_rot
private

Definition at line 29 of file imuSensor.hpp.

◆ error_sigma_acc

double ImuSensor::error_sigma_acc
private

Definition at line 28 of file imuSensor.hpp.

◆ error_sigma_rot

double ImuSensor::error_sigma_rot
private

Definition at line 30 of file imuSensor.hpp.

◆ frame

std::string ImuSensor::frame
private

Definition at line 32 of file imuSensor.hpp.

◆ name

std::string ImuSensor::name
private

Definition at line 31 of file imuSensor.hpp.


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