|
The namespace state contains the states of allowed directions. More...
Typedefs | |
using | StateModFn = state::Type(state::Type) |
using | Type = std::uint8_t |
Functions | |
state::Type | center (state::Type previous) |
state::Type | down (state::Type previous) |
state::Type | downstraight (state::Type previous) |
state::Type | from (Eigen::Vector3f targetPosition) |
Eigen::Vector3f | generateTargetPosition (state::Type state) |
state::Type | left (state::Type previous) |
state::Type | right (state::Type previous) |
state::Type | up (state::Type previous) |
Variables | |
constexpr std::uint8_t | Center = 0 |
constexpr std::uint8_t | Down = 0b10 |
constexpr std::uint8_t | Downstraight = 0b100000 |
constexpr std::uint8_t | Left = 0b1000 |
constexpr std::uint8_t | Right = 0b10000 |
constexpr std::uint8_t | Up = 0b1 |
The namespace state contains the states of allowed directions.
There are 9 states in total: Left+Up Center+Up Right + Up Left+Center Center Right+Center Left+Down Center+Down Right+Down
using StateModFn = state::Type(state::Type) |
Definition at line 57 of file LookDirection.h.
using Type = std::uint8_t |
Definition at line 49 of file LookDirection.h.
direction::state::Type center | ( | state::Type | previous | ) |
Definition at line 233 of file LookDirection.cpp.
direction::state::Type down | ( | state::Type | previous | ) |
direction::state::Type downstraight | ( | state::Type | previous | ) |
Definition at line 252 of file LookDirection.cpp.
direction::state::Type from | ( | Eigen::Vector3f | targetPosition | ) |
Definition at line 194 of file LookDirection.cpp.
Eigen::Vector3f generateTargetPosition | ( | state::Type | state | ) |
direction::state::Type left | ( | state::Type | previous | ) |
Definition at line 258 of file LookDirection.cpp.
direction::state::Type right | ( | state::Type | previous | ) |
Definition at line 264 of file LookDirection.cpp.
direction::state::Type up | ( | state::Type | previous | ) |
|
constexpr |
Definition at line 50 of file LookDirection.h.
|
constexpr |
Definition at line 52 of file LookDirection.h.
|
constexpr |
Definition at line 55 of file LookDirection.h.
|
constexpr |
Definition at line 53 of file LookDirection.h.
|
constexpr |
Definition at line 54 of file LookDirection.h.
|
constexpr |
Definition at line 51 of file LookDirection.h.