Understanding the way noise is applied to sensors
Posted: Wed Jul 11, 2018 11:46 am
Hi,
I am using the blob omnidirectional camera of footbot. I want to add noise to the simulation using the noise_std_dev XML attribute. I am struggling to understand the way in which noise is added.
I found this code in colored_blob_omnidirectional_camera_rotzonly_sensor.cpp:
From the way I understand the code, the perceived distance changes proportionally to the actual distance, using the noise_std_dev as parameter. However, why doesn't the random generator function for angle also include the parameter? Is the angle generated completely randomly between 0 +/- 360?
I am using the blob omnidirectional camera of footbot. I want to add noise to the simulation using the noise_std_dev XML attribute. I am struggling to understand the way in which noise is added.
I found this code in colored_blob_omnidirectional_camera_rotzonly_sensor.cpp:
Code: Select all
/* If noise was setup, add it */
if(m_fDistanceNoiseStdDev > 0.0f) {
m_cLEDRelativePosXY += CVector2(
m_cLEDRelativePosXY.Length() * m_pcRNG->Gaussian(m_fDistanceNoiseStdDev),
m_pcRNG->Uniform(CRadians::UNSIGNED_RANGE));
}