LaserScan
Single scan from a planar laser range-finder
Panel support
LaserScan
can be used in the following panels: 3D and Image.
Schema
Field | Type | Description |
---|---|---|
type | LineType | Type of line primitive to draw. |
pose | Pose | The position and orientation of the line relative to the reference frame. |
thickness | float64 | Thickness of the line. |
scale_invariant | boolean | If true, thickness is fixed in screen pixels. If false, thickness scales with distance in world units. |
points | Point3[] | Points along the line |
color | Color | Single color applied to the entire line. Either this or colors must be provided. |
colors | Color[] | Per-point colors along the line. If specified, must match the number of points . Either this or color must be provided. |
indices | uint32[] | Optional index list into the points and colors arrays to reuse points and avoid duplication. |
Reference implementations
Foxglove schemas are independent of any specific framework and can be used with any supported message encoding. The schema names should be specified as seen below:
Encoding | Schema |
---|---|
ROS 1 | foxglove_msgs/LaserScan |
ROS 2 | foxglove_msgs/msg/LaserScan |
JSON | foxglove.LaserScan |
Protobuf | foxglove.LaserScan |
FlatBuffers | foxglove.LaserScan |
OMG IDL | foxglove::LaserScan |