Classes | Defines | Functions
map.h File Reference
#include <stdint.h>
Include dependency graph for map.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  map_cell_t
struct  map_t

Defines

#define MAP_GXWX(map, x)   (floor((x - map->origin_x) / map->scale + 0.5) + map->size_x / 2)
#define MAP_GYWY(map, y)   (floor((y - map->origin_y) / map->scale + 0.5) + map->size_y / 2)
#define MAP_INDEX(map, i, j)   ((i) + (j) * map->size_x)
#define MAP_VALID(map, i, j)   ((i >= 0) && (i < map->size_x) && (j >= 0) && (j < map->size_y))
#define MAP_WIFI_MAX_LEVELS   8
#define MAP_WXGX(map, i)   (map->origin_x + ((i) - map->size_x / 2) * map->scale)
#define MAP_WYGY(map, j)   (map->origin_y + ((j) - map->size_y / 2) * map->scale)

Functions

map_tmap_alloc (void)
double map_calc_range (map_t *map, double ox, double oy, double oa, double max_range)
void map_draw_cspace (map_t *map, struct _rtk_fig_t *fig)
void map_draw_occ (map_t *map, struct _rtk_fig_t *fig)
void map_draw_wifi (map_t *map, struct _rtk_fig_t *fig, int index)
void map_free (map_t *map)
map_cell_tmap_get_cell (map_t *map, double ox, double oy, double oa)
int map_load_occ (map_t *map, const char *filename, double scale, int negate)
void map_update_cspace (map_t *map, double max_occ_dist)

Define Documentation

#define MAP_GXWX (   map,
 
)    (floor((x - map->origin_x) / map->scale + 0.5) + map->size_x / 2)

Definition at line 137 of file map.h.

#define MAP_GYWY (   map,
 
)    (floor((y - map->origin_y) / map->scale + 0.5) + map->size_y / 2)

Definition at line 138 of file map.h.

#define MAP_INDEX (   map,
  i,
 
)    ((i) + (j) * map->size_x)

Definition at line 144 of file map.h.

#define MAP_VALID (   map,
  i,
 
)    ((i >= 0) && (i < map->size_x) && (j >= 0) && (j < map->size_y))

Definition at line 141 of file map.h.

#define MAP_WIFI_MAX_LEVELS   8

Definition at line 42 of file map.h.

#define MAP_WXGX (   map,
  i 
)    (map->origin_x + ((i) - map->size_x / 2) * map->scale)

Definition at line 133 of file map.h.

#define MAP_WYGY (   map,
 
)    (map->origin_y + ((j) - map->size_y / 2) * map->scale)

Definition at line 134 of file map.h.


Function Documentation

map_t* map_alloc ( void  )

Definition at line 38 of file map.c.

double map_calc_range ( map_t map,
double  ox,
double  oy,
double  oa,
double  max_range 
)

Definition at line 38 of file map_range.c.

void map_draw_cspace ( map_t map,
struct _rtk_fig_t *  fig 
)
void map_draw_occ ( map_t map,
struct _rtk_fig_t *  fig 
)
void map_draw_wifi ( map_t map,
struct _rtk_fig_t *  fig,
int  index 
)
void map_free ( map_t map)

Definition at line 61 of file map.c.

map_cell_t* map_get_cell ( map_t map,
double  ox,
double  oy,
double  oa 
)

Definition at line 70 of file map.c.

int map_load_occ ( map_t map,
const char *  filename,
double  scale,
int  negate 
)

Definition at line 39 of file map_store.c.

void map_update_cspace ( map_t map,
double  max_occ_dist 
)

Definition at line 120 of file map_cspace.cpp.



nav2d_localizer
Author(s): Sebastian Kasperski
autogenerated on Thu Aug 27 2015 14:07:21