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 57 of file LookDirection.h.

◆ Type

using Type = std::uint8_t

Definition at line 49 of file LookDirection.h.

Function Documentation

◆ center()

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

Definition at line 233 of file LookDirection.cpp.

◆ down()

direction::state::Type down ( state::Type  previous)

Definition at line 246 of file LookDirection.cpp.

+ Here is the caller graph for this function:

◆ downstraight()

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

Definition at line 252 of file LookDirection.cpp.

◆ from()

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

Definition at line 194 of file LookDirection.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateTargetPosition()

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

Definition at line 213 of file LookDirection.cpp.

+ Here is the call graph for this function:

◆ left()

direction::state::Type left ( state::Type  previous)

Definition at line 258 of file LookDirection.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ right()

direction::state::Type right ( state::Type  previous)

Definition at line 264 of file LookDirection.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ up()

Definition at line 240 of file LookDirection.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ Center

constexpr std::uint8_t Center = 0
constexpr

Definition at line 50 of file LookDirection.h.

◆ Down

constexpr std::uint8_t Down = 0b10
constexpr

Definition at line 52 of file LookDirection.h.

◆ Downstraight

constexpr std::uint8_t Downstraight = 0b100000
constexpr

Definition at line 55 of file LookDirection.h.

◆ Left

constexpr std::uint8_t Left = 0b1000
constexpr

Definition at line 53 of file LookDirection.h.

◆ Right

constexpr std::uint8_t Right = 0b10000
constexpr

Definition at line 54 of file LookDirection.h.

◆ Up

constexpr std::uint8_t Up = 0b1
constexpr

Definition at line 51 of file LookDirection.h.