|
Robot Agent
1.0
|
#include <stdio.h>#include <string.h>#include <stdlib.h>#include "enviroment.h"#include "file.h"#include "config.h"Go to the source code of this file.
Functions | |
| enviroment_t * | enviroment_load (char *room_def_path, char *tags_def_path) |
| void | enviroment_destroy (enviroment_t *env) |
| int | enviroment_room_load (enviroment_room_point_t **room, const char *filename) |
| int | enviroment_tags_load (enviroment_tag_t **tags, const char *filename) |
| void | enviroment_calc_room_dimensions (enviroment_t *env) |
| int | enviroment_tag_check (enviroment_t *env, char tag_id[11]) |
| void enviroment_calc_room_dimensions | ( | enviroment_t * | env | ) |
Calculate room dimensions
| env | Enviroment structure |
Definition at line 190 of file enviroment.c.
| void enviroment_destroy | ( | enviroment_t * | env | ) |
Free dynamicly allocated memory
| env | Enviroment structure |
Definition at line 50 of file enviroment.c.
| enviroment_t* enviroment_load | ( | char * | room_def_path, |
| char * | tags_def_path | ||
| ) |
Load enviroment definitions
| room_def_path | Path to room definition |
| tags_def_path | Path to tags definition |
Definition at line 31 of file enviroment.c.
| int enviroment_room_load | ( | enviroment_room_point_t ** | room, |
| const char * | filename | ||
| ) |
Load room definition
| room | Pointer to pointer of room definition array |
| filename | Path to the file containing room definition |
Definition at line 66 of file enviroment.c.
| int enviroment_tag_check | ( | enviroment_t * | env, |
| char | tag_id[11] | ||
| ) |
Check weather RFID tag exists in enviroment
| env | Pointer to enviroment structure |
Definition at line 219 of file enviroment.c.
| int enviroment_tags_load | ( | enviroment_tag_t ** | tags, |
| const char * | filename | ||
| ) |
Load tags
| tags | Pointer to pointer of tag array |
| filename | Path to the file containing RFID tag definition |
Definition at line 123 of file enviroment.c.
1.8.5