#include <avr/io.h>#include <avr/interrupt.h>#include <math.h>#include <stdlib.h>#include <avr/delay.h>


Go to the source code of this file.
Data Structures | |
| struct | envPosition |
| struct | State |
Defines | |
| #define | DELAY_TIME 300L |
| #define | EXPLORATION_EGREEDY 0 |
| #define | EXPLORATION_VALUE_BASED 1 |
| #define | F_CPU 16000000UL |
| #define | MAX_STATES 200 |
| #define | NUM_ACTIONS 0x04 |
| #define | STATESIZE sizeof(State) |
Typedefs | |
| typedef struct envPosition | ENV_POS |
| typedef struct State | STATE |
Enumerations | |
| enum | ActionSet { UP, DOWN, LEFT, RIGHT, NONE } |
| enum | mainModes { MAIN_MODE_WALK_POLICY, MAIN_MODE_EXPLORE_FEEDBACK, MAIN_MODE_LEARN, MAIN_MODE_STOP, MAIN_MODE_UNCHANGED } |
| enum | SoftwareMode { SENSOR_MODE, ROBOT_STANDALONE } |
Functions | |
| void | operator delete (void *ptr) |
| void | operator delete[] (void *ptr) |
| void * | operator new (size_t size) |
| void * | operator new[] (size_t size) |
| #define DELAY_TIME 300L |
time that a servo needs for the movement from LEFT to RIGHT
Definition at line 34 of file global.h.
Referenced by ValueIteration::moveAndSaveFeedback().
| #define EXPLORATION_EGREEDY 0 |
Exploration Modes
Definition at line 66 of file global.h.
Referenced by ValueIteration::doExploration(), and ValueIteration::ValueIteration().
| #define EXPLORATION_VALUE_BASED 1 |
Definition at line 67 of file global.h.
Referenced by ValueIteration::doExploration(), and ValueIteration::ValueIteration().
| #define F_CPU 16000000UL |
| #define MAX_STATES 200 |
Maximum size of statespace (amount of states)
Definition at line 28 of file global.h.
Referenced by V24Control::processSetGridsize().
| #define NUM_ACTIONS 0x04 |
Definition at line 40 of file global.h.
Referenced by ValueIteration::getGreedyAction(), ValueIteration::getRandomAction(), V24Control::processGetDebug(), and ValueIteration::valueIterateAllStates().
| #define STATESIZE sizeof(State) |
determine the amount of memory-bytes which a state requires
Definition at line 61 of file global.h.
Referenced by StateSpace::getState(), V24Control::processGetState(), V24Control::processSetState(), and StateSpace::setState().
| typedef struct envPosition ENV_POS |
| enum ActionSet |
| enum mainModes |
Main modes
| MAIN_MODE_WALK_POLICY | |
| MAIN_MODE_EXPLORE_FEEDBACK | |
| MAIN_MODE_LEARN | |
| MAIN_MODE_STOP | |
| MAIN_MODE_UNCHANGED |
Definition at line 73 of file global.h.
00073 { 00074 MAIN_MODE_WALK_POLICY, 00075 MAIN_MODE_EXPLORE_FEEDBACK, 00076 MAIN_MODE_LEARN, 00077 MAIN_MODE_STOP, 00078 MAIN_MODE_UNCHANGED 00079 };
| enum SoftwareMode |
| void operator delete | ( | void * | ptr | ) |
| void operator delete[] | ( | void * | ptr | ) |
| void* operator new | ( | size_t | size | ) |
| void* operator new[] | ( | size_t | size | ) |
1.5.5