Gazebo Sensors

API Reference

10.1.1
CpuLidarSensor::RayResult Struct Reference

Result of a single ray cast. More...

#include <CpuLidarSensor.hh>

Public Attributes

double fraction
 Fraction along the ray [0,1]; non-finite if no object in range: NaN on gz-physics9, +INF on gz-physics10 (REP-117). Misses are detected with !std::isfinite, which covers both.
 
double intensity = 0.0
 Intensity value.
 
gz::math::Vector3d normal
 Normal at hit point in entity frame.
 
gz::math::Vector3d point
 Hit point in entity frame.
 

Detailed Description

Result of a single ray cast.

Member Data Documentation

◆ fraction

double fraction

Fraction along the ray [0,1]; non-finite if no object in range: NaN on gz-physics9, +INF on gz-physics10 (REP-117). Misses are detected with !std::isfinite, which covers both.

◆ intensity

double intensity = 0.0

Intensity value.

◆ normal

gz::math::Vector3d normal

Normal at hit point in entity frame.

◆ point

gz::math::Vector3d point

Hit point in entity frame.


The documentation for this struct was generated from the following file: