Skip to content

raisim::SensorSurfaceSample ​

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

Surface at which the ray of an active sensor ended, as a geometry stage (CPU ray cast or a GPU caster) reports it to the return stage of the sensor (SpinningLidar::applyReturnModel()).

Public attributes ​

cosIncidence ​

cpp
double cosIncidence

Absolute cosine of the angle between the ray and the surface normal, in [0, 1].

material ​

cpp
const SensorMaterialProperties *material

Sensor material of the surface: World::getSensorMaterial() of the physics material of the collision body hit (World::RayCastBody::sensorMaterial for GPU casters). Must not be null.

RaiSim — physics for robotics and AI.