Marker#
#include "navground/sim/state_estimations/sensor_marker.h"
A sensor that report the position of a marker relative to the agent.
Registered properties:
marker_position
(float, get_marker_position)reference_orientation
(str, get_reference_orientation)min_x
(float, get_min_x)min_y
(float, get_min_y)max_x
(float, get_max_x)max_y
(float, get_max_y)include_x
(int, get_include_x)include_y
(int, get_include_y)
Public Types
Values:
target orientation
agent frame
world frame
Public Functions
Constructs a new instance.
- Parameters:
marker_position – [in] The marker position in the world frame.
reference_orientation – [in] The reference frame used for orientation
min_x – [in] The minimal x-coordinate
min_y – [in] The minimal y-coordinate
max_x – [in] The maximal x-coordinate
max_y – [in] The maximal y-coordinate
include_x – [in] Whether to include the x-coordinate
include_y – [in] Whether to include the y-coordinate
name – [in] The name to use as a prefix
Sets the marker position in the world frame.
- Parameters:
value – [in] The desired value
Sets the reference frame used for orientation.
- Parameters:
value – [in] The desired value
Gets the marker position in the world frame. rangings.
- Returns:
The position.
Gets the reference frame used for orientation.
- Returns:
The orientation frame.
Gets the reference frame used for orientation.
- Returns:
The orientation frame name.
Sets the reference frame used for orientation.
- Parameters:
name – [in] The desired frame name.
Computes the relative marker pose.
- Returns:
The position.
Gets the bounding box.
- Returns:
The bounding box
Sets the bounding box.
- Parameters:
value – [in] The desired value
Gets the lowest bound on the x-coordinate.
- Returns:
The lowest x-coordinate.
Gets the lowest bound on the y-coordinate.
- Returns:
The lowest y-coordinate.
Gets the highest bound on the x-coordinate.
- Returns:
The highest x-coordinate.
Gets the highest bound on the y-coordinate.
- Returns:
The highest y-coordinate.
Sets the lowest bound on the x-coordinate.
- Parameters:
value – [in] The desired value
Sets the lowest bound on the y-coordinate.
- Parameters:
value – [in] The desired value
Sets the highest bound on the x-coordinate.
- Parameters:
value – [in] The desired value
Sets the highest bound on the y-coordinate.
- Parameters:
value – [in] The desired value
Sets whether to include the x-coordinate.
- Parameters:
value – [in] True to include it.
Gets whether to include the x-coordinate.
- Returns:
True when including it.
Sets whether to include the y-coordinate.
- Parameters:
value – [in] True to include it.
Gets whether to include the y-coordinate.
- Returns:
True when including it.
Updates an environment state with respect to a given agent.
- Parameters:
agent – The agent owning the state estimation
world – [in] The world that the agent is part of
state – The environment state to be updated
Runs an update.
Like update but without writing a core::SensingState.
- Parameters:
agent – The agent
world – The world
Reads the marker position from a core::SensingState.
Calls read_marker_position_with_name, passing Sensor::get_name.
- Parameters:
state – The state
- Returns:
A position or null if none was found.
Public Static Functions
Reads the marker position from a core::SensingState.
- Parameters:
state – The state
name – [in] The namespace of the sensor
- Returns:
A position or null if none was found.
Public Static Attributes