Skip to main content

LaserScan

Single scan data from a planar laser rangefinder

Panel Support

LaserScan is used in the 3D Panel and Image Panel.

Data Structure

FieldTypeDescription
timestamptimeTimestamp of the scan
frame_idstringReference coordinate system
posePoseScan origin relative to the reference coordinate system; points lie in the x-y plane relative to this origin; angles are interpreted as counterclockwise rotations around the z axis, with 0 radians pointing in the +x direction
start_anglefloat64Azimuth of the first point in radians
end_anglefloat64Azimuth of the last point in radians
rangesfloat64[]Distances from the origin to detected points; assumed to be evenly distributed between start_angle and end_angle
intensitiesfloat64[]Intensities of the detected points

Reference Implementation

The visualization data structure is framework-independent and can be implemented using any supported message encoding:

EncodingData Structure
ROS 1foxglove_msgs/LaserScan
ROS 2foxglove_msgs/msg/LaserScan
JSONfoxglove.LaserScan
Protobuffoxglove.LaserScan
FlatBuffersfoxglove.LaserScan
OMG IDLfoxglove::LaserScan

You must use the data structure names specified above for the visualization to recognize the data structure.