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

#include <scalarValueSensor.hpp>

Inheritance diagram for ScalarValueSensor:
Inheritance graph
Collaboration diagram for ScalarValueSensor:
Collaboration graph

Public Member Functions

 ScalarValueSensor (double rate, double deadTime)
 
void readConfig (ConfigElement &config)
 
bool RunTick (StampedScalar &in, double time)
 
StampedScalar applyError (StampedScalar input)
 
- Public Member Functions inherited from SensorBase< StampedScalar >
double getRate ()
 
StampedScalar getOldest ()
 
bool availableDeadTime (double time)
 
bool sampleReady (double time)
 
void registerSampling ()
 
Eigen::Vector3d getPosition ()
 
Eigen::Vector3d getOrientation ()
 

Private Attributes

double error_mean
 
double error_sigma
 

Additional Inherited Members

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

Detailed Description

Definition at line 10 of file scalarValueSensor.hpp.

Constructor & Destructor Documentation

◆ ScalarValueSensor()

ScalarValueSensor::ScalarValueSensor ( double  rate,
double  deadTime 
)

Definition at line 3 of file scalarValueSensor.cpp.

Member Function Documentation

◆ applyError()

StampedScalar ScalarValueSensor::applyError ( StampedScalar  input)

Definition at line 31 of file scalarValueSensor.cpp.

Here is the caller graph for this function:

◆ readConfig()

void ScalarValueSensor::readConfig ( ConfigElement config)

Definition at line 12 of file scalarValueSensor.cpp.

Here is the call graph for this function:

◆ RunTick()

bool ScalarValueSensor::RunTick ( StampedScalar in,
double  time 
)

Definition at line 20 of file scalarValueSensor.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ error_mean

double ScalarValueSensor::error_mean
private

Definition at line 22 of file scalarValueSensor.hpp.

◆ error_sigma

double ScalarValueSensor::error_sigma
private

Definition at line 23 of file scalarValueSensor.hpp.


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