Marker#
A sensor that report the position of a marker relative to the agent.
Registered properties:
marker_position (float,
marker_position
)reference_orientation (str,
reference_orientation
)min_x (float,
min_x
)min_y (float,
min_y
)max_x (float,
max_x
)max_y (float,
max_y
)include_x (int,
include_x
)include_y (int,
include_y
)
target orientation
agent frame
world frame
- Type:
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
, passingSensor.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 aSensingState
.- Parameters:
agent – The agent
world – The world
-
The bounding box
- Type:
Whether to include the x-coordinate.
- Type:
Whether to include the y-coordinate.
- Type:
The marker position in the world frame. rangings.
- Type:
The highest bound on the x-coordinate.
- Type:
The highest bound on the y-coordinate.
- Type:
Computes the relative marker pose.
- Type:
The lowest bound on the x-coordinate.
- Type:
The lowest bound on the y-coordinate.
- Type:
The reference frame used for orientation.