Skip to content

raisim::SensorReturnDetection ​

struct · #include <raisim/sensors/SensorModels.hpp>

Probability that an active sensor detects a return, from the return strength S = rho_eff * cos(incidence) / range^2. The threshold is a data-sheet style specification: a Lambertian target of reflectance minReflectance at minReflectanceRange is detected with probability 0.9. With detectionSoftness > 0 the probability is the logistic 1 / (1 + exp(-ln(S / S_th) / detectionSoftness - ln 9)); with 0 it is a hard threshold S >= S_th.

Public member functions ​

detectionProbability ​

cpp
double detectionProbability(double strength, double range) const

Parameters

ParameterDescription
strength (in)rho_eff * cos(incidence).
range (in)Range in meters.

Returns Detection probability in [0, 1].

isValid ​

cpp
bool isValid() const

Returns true if minReflectance is in (0, 1], minReflectanceRange is finite and positive, detectionSoftness is finite and not negative and glintAngle is in [0, pi/2).

Public attributes ​

minReflectance ​

cpp
double minReflectance

Lambertian reflectance of the specification target, 0 to 1.

minReflectanceRange ​

cpp
double minReflectanceRange

Range in meters at which that target is detected with probability 0.9.

detectionSoftness ​

cpp
double detectionSoftness

Width of the transition in ln(S); 0 gives a hard threshold.

glintAngle ​

cpp
double glintAngle

Angle from the surface normal within which glass and mirrors return a glint, in radians.

RaiSim — physics for robotics and AI.