#include <vector>
#include <iostream>
#include <cmath>
#include <stdint.h>
#include <math.h>
Go to the source code of this file.
Defines |
#define | MAX_OBSERVATION_COUNT 10 |
Typedefs |
typedef std::pair< int, int > | pt_t |
Functions |
vector< double > | log_odds (1, 0) |
int | main (int argc, char **argv) |
vector< int8_t > | occupancy (1,-1) |
int | offsetFromRowCol (const int row, const int col, const int ncol) |
pt_t | pt (0, 0) |
void | updateOccupancyAndPrint (bool occupied) |
void | updatePointOccupancy (const bool occupied, const pt_t &pt, const int ncol, vector< int8_t > &occupancy, vector< double > &log_odds) |
Variables |
const double | max_log_odds = 20 |
const int | ncol = 1 |
const double | p_occupied_when_laser = 0.95 |
Define Documentation
Typedef Documentation
typedef std::pair<int,int> pt_t |
Function Documentation
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
void updatePointOccupancy |
( |
const bool |
occupied, |
|
|
const pt_t & |
pt, |
|
|
const int |
ncol, |
|
|
vector< int8_t > & |
occupancy, |
|
|
vector< double > & |
log_odds |
|
) |
| |
Variable Documentation