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
double detectionProbability(double strength, double range) constParameters
| Parameter | Description |
|---|---|
strength (in) | rho_eff * cos(incidence). |
range (in) | Range in meters. |
Returns Detection probability in [0, 1].
isValid
bool isValid() constReturns 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
double minReflectanceLambertian reflectance of the specification target, 0 to 1.
minReflectanceRange
double minReflectanceRangeRange in meters at which that target is detected with probability 0.9.
detectionSoftness
double detectionSoftnessWidth of the transition in ln(S); 0 gives a hard threshold.
glintAngle
double glintAngleAngle from the surface normal within which glass and mirrors return a glint, in radians.