Laser#

Laser

Warning

Deprecated. Use POST /space-center/raycast-distance instead.

A LiDAR. Obtained by calling POST /lidar/laser.

A Laser object is returned as {"id": ..., "class": ...}, its identifier and the name of its own class. An argument is that object or the identifier alone. A path that acts on an object takes the identifier as (id).

GET /lidar/laser/(id)/part#

Get the part containing this LiDAR.

Parameters:
  • id – The identifier of the Laser object.

Response JSON Object:
  • value (SpaceCenter.Part)

GET /lidar/laser/(id)/cloud#

Get the point cloud from the LiDAR. Returns an empty list on failure.

Parameters:
  • id – The identifier of the Laser object.

Response JSON Object:
  • value (list<double>)