raisim::SensorMaterialProperties
struct · #include <raisim/sensors/SensorModels.hpp>
Optical properties of a material as active sensors (active-stereo depth cameras, LiDARs) see it, in the near infrared. Registered per physics material name with World::setSensorMaterial().
Public member functions
isTransparent
bool isTransparent() constReturns true for a transparent surface (transmission at least 0.5) without retroreflection.
passesThrough
bool passesThrough(double incidence, double glintAngle) constTransparent and mirror-like surfaces (transmission or specularity at least 0.5) return no light to the sensor unless they face it within the glint angle; a ray or view then continues behind a transparent surface and ends at a mirror without a return. A retroreflective surface always stops the ray and returns its retroreflection.
Parameters
| Parameter | Description |
|---|---|
incidence (in) | Angle between the ray and the surface normal, in radians. |
glintAngle (in) | Glint angle of the sensor, in radians. |
Returns true if this surface does not stop the ray.
blocksWithoutReturn
bool blocksWithoutReturn(double incidence, double glintAngle) constReturns true if this surface absorbs the ray without a return (a mirror outside the glint angle, without retroreflection).
effectiveReflectance
double effectiveReflectance(double incidence, double glintAngle) constParameters
| Parameter | Description |
|---|---|
incidence (in) | Angle between the ray and the surface normal, in radians. |
glintAngle (in) | Glint angle of the sensor, in radians. |
Returns Effective reflectance rho_eff: the diffuse part, the retroreflection (returned to an emitter next to the receiver at any incidence; the return strength's cos(incidence) is its shrinking projected area) and, within the glint angle, the specular glint (Fresnel 4% for glass).
isValid
bool isValid() constReturns true if every coefficient is finite, nirReflectance, transmission and specularity are in [0, 1] and retroreflectivity is not negative.
Public attributes
nirReflectance
double nirReflectanceDiffuse (Lambertian) reflectance at the sensor wavelength (850-905 nm), 0 to 1.
retroreflectivity
double retroreflectivityRetroreflection in multiples of a 100% Lambertian target, returned toward the emitter at any incidence (road signs, reflective tape); 0 for ordinary materials.
transmission
double transmissionFraction of light transmitted (glass, clear plastic), 0 to 1.
specularity
double specularityFraction of light reflected like a mirror (polished metal), 0 to 1.