PyLidar#
An alternative implementation to navground.sim.state_estimations.LidarStateEstimation to provide an example on how to implement a sensor in Python.
Bases:
SensorPython equivalent to the C++
navground::sim::LidarStateEstimationclass.Registered properties:
range(float)field_of_view(float)resolution(int)range(float)
State:
navground.core.SensingStateConstructs a new instance.
- Parameters:
resolution – The resolution
start_angle – The start angle
field_of_view – The field of view
range – The range
Overridden: associates an buffer of shape
resolutionto key “range”.- Returns:
The buffer description.
Overridden: set state field “range” with range measurements.
- Parameters:
agent – The agent
world – The world
state – The state
The field of view [rad].
The range of view
The number of range measurements per scan.
The lowest visible relative angle [rad].