Lidar#

A distance scanner.

Registered properties:

Constructs a new instance.

Parameters:
  • range – The maximal range of the sensor

  • start_angle – The starting angle

  • field_of_view – The field of view

  • resolution – The number of ranging measurements per scan

  • position – The position of the sensor with respect to the agent origin.

  • error_bias – The systematic error for all rangings.

  • error_std_dev – The rangings error standard deviation.

  • name – The name to use as a prefix

Reads the ranges stored in a sensing state

Calls read_ranges_with_name, passing name.

Parameters:

state – The state

Returns:

The array of ranges

Reads a ranges stored in a sensing state

Parameters:
  • state – The state

  • name – The namespace of the ranges

Returns:

An array of ranges or null if none were found.

Reads a scan from a SensingState

Call read_scan_with_name, passing name.

Parameters:

state – The state

Returns:

A scan or null if none was found.

Reads a scan from a SensingState

Parameters:
  • state – The state

  • name – The namespace of the scan

Returns:

A scan or null if none was found.

Type:

list[float]

The ray angles.

Type:

float

The angular increment between rays.

Type:

float

The error bias, i.e., the systematic error for all rangings.

Type:

float

The rangings error standard deviation.

Type:

float

The range of view.

Type:

Vector2

The position of the sensor with respect to the agent origin.

Type:

float

The range of view.

Type:

int

The range of view.

Type:

float

The range of view.