|
Robot Agent
1.0
|
#include <math.h>#include <string.h>#include <stdlib.h>#include "robot.h"#include "general.h"#include "config.h"#include "def.h"Go to the source code of this file.
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) |
| 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) |
1.8.5