armarx::view_selection::skills::direction::state Namespace Reference

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
 

Detailed Description

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

Typedef Documentation

◆ StateModFn

Definition at line 43 of file LookDirection.h.

◆ Type

using Type = std::uint8_t

Definition at line 35 of file LookDirection.h.

Function Documentation

◆ center()

direction::state::Type center ( state::Type previous)

Definition at line 261 of file LookDirection.cpp.

◆ down()

Definition at line 274 of file LookDirection.cpp.

◆ downstraight()

direction::state::Type downstraight ( state::Type previous)

Definition at line 280 of file LookDirection.cpp.

◆ from()

direction::state::Type from ( Eigen::Vector3f targetPosition)

Definition at line 222 of file LookDirection.cpp.

◆ generateTargetPosition()

Eigen::Vector3f generateTargetPosition ( state::Type state)

Definition at line 241 of file LookDirection.cpp.

◆ left()

Definition at line 286 of file LookDirection.cpp.

◆ right()

Definition at line 292 of file LookDirection.cpp.

◆ up()

Definition at line 268 of file LookDirection.cpp.

Variable Documentation

◆ Center

std::uint8_t Center = 0
constexpr

Definition at line 36 of file LookDirection.h.

◆ Down

std::uint8_t Down = 0b10
constexpr

Definition at line 38 of file LookDirection.h.

◆ Downstraight

std::uint8_t Downstraight = 0b100000
constexpr

Definition at line 41 of file LookDirection.h.

◆ Left

std::uint8_t Left = 0b1000
constexpr

Definition at line 39 of file LookDirection.h.

◆ Right

std::uint8_t Right = 0b10000
constexpr

Definition at line 40 of file LookDirection.h.

◆ Up

std::uint8_t Up = 0b1
constexpr

Definition at line 37 of file LookDirection.h.