RPLidar.Frame (rplidar v0.1.0)

The RPLidar.Frame struct contains a resultant frame produced by the RPLidar.Framer process. Its contents are a list of points and the start and finish timestamps (as returned from System.monotonic_time/0).

Each member of the points list is a tuple containing the original point data as well as the converted Cartesian coordinates (x and y) calculated by the Framer process.

  • angle - original angle from the raw point (in degrees)
  • range - original range from the raw point (in millimeters)
  • x and y - calculated Cartesian coordinates scaled by the scale options passed to the Framer (scaled to meters in the code above)

Link to this section Summary

Link to this section Types

@type point() :: {float(), float(), float(), float()}
@type t() :: %RPLidar.Frame{finish: integer(), points: [point()], start: integer()}

Link to this section Functions

Link to this function

new(points, start, finish)

@spec new([point()], integer(), integer()) :: t()