Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
scalarValueSensor.hpp
Go to the documentation of this file.
1
#ifndef SCALARVALUESENSOR_HPP
2
#define SCALARVALUESENSOR_HPP
3
4
#include "
configParser.hpp
"
5
#include "
sensorBase.hpp
"
6
#include "
types.hpp
"
7
#include <queue>
8
#include <random>
9
10
class
ScalarValueSensor
:
public
SensorBase
<StampedScalar>
11
{
12
public
:
13
ScalarValueSensor
(
double
rate
,
double
deadTime
);
14
15
void
readConfig
(
ConfigElement
& config);
16
17
bool
RunTick
(StampedScalar& in,
double
time);
18
19
StampedScalar
applyError
(StampedScalar input);
20
21
private
:
22
double
error_mean
;
23
double
error_sigma
;
24
};
25
26
#endif
/* SCALARVALUESENSOR_HPP */
ConfigElement
Definition
configParser.hpp:15
ScalarValueSensor
Definition
scalarValueSensor.hpp:11
ScalarValueSensor::RunTick
bool RunTick(StampedScalar &in, double time)
Definition
scalarValueSensor.cpp:20
ScalarValueSensor::error_mean
double error_mean
Definition
scalarValueSensor.hpp:22
ScalarValueSensor::error_sigma
double error_sigma
Definition
scalarValueSensor.hpp:23
ScalarValueSensor::applyError
StampedScalar applyError(StampedScalar input)
Definition
scalarValueSensor.cpp:31
ScalarValueSensor::readConfig
void readConfig(ConfigElement &config)
Definition
scalarValueSensor.cpp:12
SensorBase
Definition
sensorBase.hpp:7
SensorBase< StampedScalar >::deadTime
double deadTime
Definition
sensorBase.hpp:49
SensorBase< StampedScalar >::rate
double rate
Definition
sensorBase.hpp:47
configParser.hpp
sensorBase.hpp
types.hpp
src
pacsim
include
sensorModels
scalarValueSensor.hpp
Generated by
1.9.8