Skip to content

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 ​

cpp
bool isTransparent() const

Returns true for a transparent surface (transmission at least 0.5) without retroreflection.

passesThrough ​

cpp
bool passesThrough(double incidence, double glintAngle) const

Transparent 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

ParameterDescription
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 ​

cpp
bool blocksWithoutReturn(double incidence, double glintAngle) const

Returns true if this surface absorbs the ray without a return (a mirror outside the glint angle, without retroreflection).

effectiveReflectance ​

cpp
double effectiveReflectance(double incidence, double glintAngle) const

Parameters

ParameterDescription
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 ​

cpp
bool isValid() const

Returns true if every coefficient is finite, nirReflectance, transmission and specularity are in [0, 1] and retroreflectivity is not negative.

Public attributes ​

nirReflectance ​

cpp
double nirReflectance

Diffuse (Lambertian) reflectance at the sensor wavelength (850-905 nm), 0 to 1.

retroreflectivity ​

cpp
double retroreflectivity

Retroreflection in multiples of a 100% Lambertian target, returned toward the emitter at any incidence (road signs, reflective tape); 0 for ordinary materials.

transmission ​

cpp
double transmission

Fraction of light transmitted (glass, clear plastic), 0 to 1.

specularity ​

cpp
double specularity

Fraction of light reflected like a mirror (polished metal), 0 to 1.

RaiSim — physics for robotics and AI.