AIToolbox
A library that offers tools for AI problem solving.
AIToolbox::MDP::GridWorldUtils Namespace Reference

This namespace exists in order to allow referencing the Direction values directly. More...

Enumerations

enum  Direction : size_t {
  UP = 0, RIGHT = 1, DOWN = 2, LEFT = 3,
  UP_RIGHT = 4, UP_LEFT = 5, DOWN_RIGHT = 6, DOWN_LEFT = 7
}
 The possible actions in a GridWorld-like environment. More...
 

Variables

static constexpr std::array< Direction, 4 > Directions4 {{UP, RIGHT, DOWN, LEFT}}
 
static constexpr std::array< Direction, 8 > Directions8 {{UP, RIGHT, DOWN, LEFT, UP_RIGHT, UP_LEFT, DOWN_RIGHT, DOWN_LEFT}}
 

Detailed Description

This namespace exists in order to allow referencing the Direction values directly.

Enumeration Type Documentation

◆ Direction

The possible actions in a GridWorld-like environment.

Enumerator
UP 
RIGHT 
DOWN 
LEFT 
UP_RIGHT 
UP_LEFT 
DOWN_RIGHT 
DOWN_LEFT 

Variable Documentation

◆ Directions4

constexpr std::array<Direction, 4> AIToolbox::MDP::GridWorldUtils::Directions4 {{UP, RIGHT, DOWN, LEFT}}
staticconstexpr

◆ Directions8

constexpr std::array<Direction, 8> AIToolbox::MDP::GridWorldUtils::Directions8 {{UP, RIGHT, DOWN, LEFT, UP_RIGHT, UP_LEFT, DOWN_RIGHT, DOWN_LEFT}}
staticconstexpr