Discs#
#include "navground/sim/state_estimations/sensor_discs.h"
Perceive a fixed number of nearest neighbors and obstacles.
Empty places are filled with zeros
Registered properties:
range
(float, get_range)number
(int, get_number)max_radius
(int, get_max_radius)max_speed
(int, get_max_speed)include_valid
(bool, get_include_valid)use_nearest_point
(bool, get_use_nearest_point)max_id
(int, get_max_id)
Public Functions
Constructs a new instance.
- Parameters:
range – [in] The range of view
number – [in] Number of discs
max_radius – [in] Maximal neighbor radius
max_speed – [in] Maximal neighbor speed
include_valid – [in] Whether to include validity
use_nearest_point – [in] Whether to use nearest point as position
max_id – [in] Maximal neighbor id
name – [in] The name to use as a prefix
Sets the range of view.
- Parameters:
value – [in] The new value
Gets the range of view.
- Returns:
The range of view.
Sets the number of discs.
- Parameters:
value – [in] The new value
Gets the number of discs.
- Returns:
The number of discs.
Sets the maximal neighbor radius.
- Parameters:
value – [in] The new value
Gets the maximal neighbor radius.
- Returns:
The maximal radius.
Sets the maximal neighbor speed.
- Parameters:
value – [in] The new value
Gets the maximal neighbor speed.
- Returns:
The maximal speed.
Sets whether to include validity.
- Parameters:
value – [in] The new value
Gets whether to include validity.
- Returns:
Whether to include validity.
Sets whether to use the nearest or the center as position.
- Parameters:
value – [in] The new value
Gets whether to use the nearest or the center as position.
- Returns:
Whether to use nearest point as position.
Sets the maximal possible id.
Set to zero to not include ids.
- Parameters:
value – [in] The new value
Gets the maximal possible id.
- Returns:
The maximal id.
Public Static Attributes
The default range
The default start angle
The default maximal neighbor radius (zero means that it will include radii)
The default maximal neighbor speed (zero means that it will not include velocities)
The default for whether to include validity
The default for whether to use nearest point as position
The default maximal id (zero means that it will not include ids)