Marker#

A sensor that report the position of a marker relative to the agent.

Registered properties:

target orientation

agent frame

world frame

Type:

str

Constructs a new instance.

Parameters:
  • marker_position – The marker position in the world frame.

  • reference_orientation – The reference frame used for orientation

  • min_x – The minimal x-coordinate

  • min_y – The minimal y-coordinate

  • max_x – The maximal x-coordinate

  • max_y – The maximal y-coordinate

  • include_x – Whether to include the x-coordinate

  • include_y – Whether to include the y-coordinate

  • name – The name to use as a prefix

Reads the marker position from a SensingState

Calls read_marker_position_with_name, passing Sensor.name.

Parameters:

state – The state

Returns:

A position or null if none was found.

Reads the marker position from a SensingState

Parameters:
  • state – The state

  • name – The namespace of the sensor

Returns:

A position or null if none was found.

Runs an update

Like update() but without writing a SensingState.

Parameters:
  • agent – The agent

  • world – The world

Type:

navground.sim.BoundingBox

The bounding box

Type:

bool

Whether to include the x-coordinate.

Type:

bool

Whether to include the y-coordinate.

Type:

Vector2

The marker position in the world frame. rangings.

Type:

float

The highest bound on the x-coordinate.

Type:

float

The highest bound on the y-coordinate.

Type:

Vector2

Computes the relative marker pose.

Type:

float

The lowest bound on the x-coordinate.

Type:

float

The lowest bound on the y-coordinate.

Type:

ReferenceOrientation

The reference frame used for orientation.