Robot Agent
1.0
|
Go to the source code of this file.
Data Structures | |
struct | s_ROBOT_STRUCT |
Robot structure. More... | |
Typedefs | |
typedef struct s_ROBOT_STRUCT | robot_t |
Robot structure. More... | |
Functions | |
robot_t * | robot_init (int x, int y, int a, int move_noise, float turn_noise, int sense_tag_noise, int sense_wall_noise, int radius) |
void | robot_destroy (robot_t *robot) |
void | robot_set_pose (robot_t *robot, int x, int y, int a) |
void | robot_set_noise (robot_t *robot, int move_noise, float turn_noise, int sense_tag_noise, int sense_wall_noise) |
void | robot_drive (robot_t *robot, int distance, int angle, int uncertain) |
float | robot_sense_tag (robot_t *robot, rfid_t *rfids, enviroment_t *envs) |
float | robot_sense_wall (robot_t *robot, enviroment_t *envs) |
float | robot_eval_tag (robot_t *robot, enviroment_t *envs) |
float | robot_eval_wall (robot_t *robot, enviroment_t *envs) |
typedef struct s_ROBOT_STRUCT robot_t |
Robot structure.
void robot_destroy | ( | robot_t * | robot | ) |
void robot_drive | ( | robot_t * | robot, |
int | distance, | ||
int | angle, | ||
int | uncertain | ||
) |
float robot_eval_tag | ( | robot_t * | robot, |
enviroment_t * | envs | ||
) |
float robot_eval_wall | ( | robot_t * | robot, |
enviroment_t * | envs | ||
) |
robot_t* robot_init | ( | int | x, |
int | y, | ||
int | a, | ||
int | move_noise, | ||
float | turn_noise, | ||
int | sense_tag_noise, | ||
int | sense_wall_noise, | ||
int | radius | ||
) |
Initialize robot
x | X coordinate of position (mm) |
y | Y coordinate of position (mm) |
a | Heading direction (Radians) |
move_noise | Error created during forward or backward motion (mm) |
turn_noise | Error created during turning (Radians) |
sense_tag_noise | Error of tag read (mm) |
sense_wall_noise | Error of wall read (mm) |
radius | Robot radius (mm) |
float robot_sense_tag | ( | robot_t * | robot, |
rfid_t * | rfids, | ||
enviroment_t * | envs | ||
) |
float robot_sense_wall | ( | robot_t * | robot, |
enviroment_t * | envs | ||
) |
void robot_set_noise | ( | robot_t * | robot, |
int | move_noise, | ||
float | turn_noise, | ||
int | sense_tag_noise, | ||
int | sense_wall_noise | ||
) |
Set error/noise for motion and sensors
robot | Pointer to robot structure |
move_noise | Error created during forward or backward motion (mm) |
turn_noise | Error created during turning (Radians) |
sense_tag_noise | Error of tag read (mm) |
sense_wall_noise | Error of wall read (mm) |