Laser#

Laser

Warning

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

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

A Laser object is passed and returned as its identifier, a number. A path that acts on an object takes it 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>)