|
Formula Student Autonomous Systems
The code for the main driverless system
|
Structure to hold grid geometry parameters and provide utility functions. More...
#include <grid_geometry.hpp>

Public Member Functions | |
| GridGeometry (double angle_, double radius_, double start_aug_, double radius_aug_, double fov_) | |
| Constructor to initialize grid geometry parameters. | |
| int | get_slice_index (double x, double y) const |
| Compute slice index for a given (x, y) | |
| int | get_bin_index (double x, double y) const |
| Compute bin index for a given (x, y) | |
| int | get_num_slices () const |
| Get the number of slices in the grid. | |
| int | get_num_bins (double range) const |
| Get the number of bins for a given range. | |
Public Attributes | |
| double | angle |
| double | radius |
| double | start_augmentation |
| double | radius_augmentation |
| double | fov |
Structure to hold grid geometry parameters and provide utility functions.
Definition at line 11 of file grid_geometry.hpp.
| GridGeometry::GridGeometry | ( | double | angle_, |
| double | radius_, | ||
| double | start_aug_, | ||
| double | radius_aug_, | ||
| double | fov_ | ||
| ) |
Constructor to initialize grid geometry parameters.
| angle_ | Angular resolution |
| radius_ | Base radial bin size |
| start_aug_ | Distance at which augmentation starts |
| radius_aug_ | Bin size increase per bin |
| fov_ | Field of view |
Definition at line 3 of file grid_geometry.cpp.
| int GridGeometry::get_bin_index | ( | double | x, |
| double | y | ||
| ) | const |
Compute bin index for a given (x, y)
| x | X coordinate |
| y | Y coordinate |
Definition at line 22 of file grid_geometry.cpp.

| int GridGeometry::get_num_bins | ( | double | range | ) | const |
Get the number of bins for a given range.
| range | Distance from origin |
Definition at line 45 of file grid_geometry.cpp.

| int GridGeometry::get_num_slices | ( | ) | const |
Get the number of slices in the grid.
Definition at line 41 of file grid_geometry.cpp.

| int GridGeometry::get_slice_index | ( | double | x, |
| double | y | ||
| ) | const |
Compute slice index for a given (x, y)
| x | X coordinate |
| y | Y coordinate |
Definition at line 11 of file grid_geometry.cpp.

| double GridGeometry::angle |
Definition at line 12 of file grid_geometry.hpp.
| double GridGeometry::fov |
Definition at line 16 of file grid_geometry.hpp.
| double GridGeometry::radius |
Definition at line 13 of file grid_geometry.hpp.
| double GridGeometry::radius_augmentation |
Definition at line 15 of file grid_geometry.hpp.
| double GridGeometry::start_augmentation |
Definition at line 14 of file grid_geometry.hpp.