Robot Agent
1.0
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "config.h"
#include "def.h"
#include "enviroment.h"
#include "serialport.h"
#include "openinterface.h"
#include "rfid.h"
#include "robot.h"
#include "pf.h"
#include "queue.h"
#include "protocol.h"
#include "udp.h"
#include "pheromone.h"
#include "timelib.h"
#include "doublylinkedlist.h"
#include "debug.h"
Go to the source code of this file.
Data Structures | |
struct | s_TASK_STRUCT |
Task structure. More... | |
struct | s_TASK_MISSION_STRUCT |
Task mission structure. More... | |
struct | s_TASK_CONTROL_STRUCT |
Task control structure. More... | |
struct | s_TASKPIPE_REFINE_REPORT_STRUCT |
Task pipe: refine -> report. More... | |
struct | s_TASKPIPE_REPORT_MISSION_STRUCT |
Task pipe: report -> mission. More... | |
struct | s_TASKPIPE_NAVIGATE_CONTROL_STRUCT |
Task pipe: navigate -> control. More... | |
Macros | |
#define | s_TASK_EVENT_SET 1 |
#define | s_TASK_EVENT_RESET 0 |
#define | s_TASK_NOP_ID 0 |
#define | s_TASK_MISSION_ID 1 |
#define | s_TASK_NAVIGATE_ID 2 |
#define | s_TASK_CONTROL_ID 3 |
#define | s_TASK_REFINE_ID 4 |
#define | s_TASK_REPORT_ID 5 |
#define | s_TASK_COMMUNICATE_ID 6 |
#define | s_TASK_AVOID_ID 7 |
Typedefs | |
typedef struct s_TASK_STRUCT | task_t |
Task structure. More... | |
typedef struct s_TASK_MISSION_STRUCT | task_mission_t |
Task mission structure. More... | |
typedef struct s_TASK_CONTROL_STRUCT | task_control_t |
Task control structure. More... | |
typedef struct s_TASKPIPE_REFINE_REPORT_STRUCT | taskpipe_refine_report_t |
Task pipe: refine -> report. More... | |
typedef struct s_TASKPIPE_REPORT_MISSION_STRUCT | taskpipe_report_mission_t |
Task pipe: report -> mission. More... | |
typedef struct s_TASKPIPE_NAVIGATE_CONTROL_STRUCT | taskpipe_navigate_control_t |
Task pipe: navigate -> control. More... | |
Functions | |
void | task_init (int enable) |
void | task_destroy (void) |
void | task_mission (void) |
void | task_navigate (void) |
void | task_control (void) |
void | task_avoid (void) |
void | task_refine (void) |
void | task_report (void) |
void | task_communicate (void) |
typedef struct s_TASK_CONTROL_STRUCT task_control_t |
Task control structure.
typedef struct s_TASK_MISSION_STRUCT task_mission_t |
Task mission structure.
typedef struct s_TASK_STRUCT task_t |
Task structure.
typedef struct s_TASKPIPE_NAVIGATE_CONTROL_STRUCT taskpipe_navigate_control_t |
Task pipe: navigate -> control.
typedef struct s_TASKPIPE_REFINE_REPORT_STRUCT taskpipe_refine_report_t |
Task pipe: refine -> report.
typedef struct s_TASKPIPE_REPORT_MISSION_STRUCT taskpipe_report_mission_t |
Task pipe: report -> mission.
void task_avoid | ( | void | ) |
Check the bump sensors for collision
Definition at line 20 of file task_avoid.c.
void task_communicate | ( | void | ) |
Communication (receive and send data)
Definition at line 20 of file task_communicate.c.
void task_control | ( | void | ) |
Sense, control, localization
Definition at line 20 of file task_control.c.
void task_init | ( | int | enable | ) |
void task_mission | ( | void | ) |
Control mission
Definition at line 20 of file task_mission.c.
void task_navigate | ( | void | ) |
Control navigation
Definition at line 20 of file task_navigate.c.
void task_refine | ( | void | ) |
Refine position, localization
Definition at line 20 of file task_refine.c.
void task_report | ( | void | ) |
Report victim
Definition at line 20 of file task_report.c.
enviroment_t* g_envs |
doublylinkedlist_t* g_list_send |
openinterface_t* g_ois |
pheromone_t* g_phs |
task_control_t g_task_control_data |
task_t g_task_gen_data_stream |
task_mission_t g_task_mission_data |
taskpipe_navigate_control_t g_tp_navigate_control |
taskpipe_refine_report_t g_tp_refine_report |
taskpipe_report_mission_t g_tp_report_mission |