gusimplewhiteboard
guWhiteboard::SwitchSubsumption Class Reference

Subsumption SWITCH that select highest priority command. More...

#include <SwitchSubsumption.hpp>

Inheritance diagram for guWhiteboard::SwitchSubsumption:
Collaboration diagram for guWhiteboard::SwitchSubsumption:

Public Member Functions

 SwitchSubsumption ()
 
 SwitchSubsumption (const std::string &motion_command)
 string constructor More...
 
std::string description () const
 convert to a string More...
 
void from_string (const std::string &str)
 convert from a string More...
 
- Public Member Functions inherited from wb_switch_subsumption
 ARRAY_PROPERTY (enum TotoMotionCommand, theMotions, 6) wb_switch_subsumption()
 struct constructor More...
 

Detailed Description

Subsumption SWITCH that select highest priority command.

Definition at line 75 of file SwitchSubsumption.hpp.

Constructor & Destructor Documentation

◆ SwitchSubsumption() [1/2]

guWhiteboard::SwitchSubsumption::SwitchSubsumption ( )
inline

Definition at line 78 of file SwitchSubsumption.hpp.

◆ SwitchSubsumption() [2/2]

guWhiteboard::SwitchSubsumption::SwitchSubsumption ( const std::string &  motion_command)
inline

string constructor

Definition at line 82 of file SwitchSubsumption.hpp.

References from_string().

Member Function Documentation

◆ description()

std::string guWhiteboard::SwitchSubsumption::description ( ) const
inline

◆ from_string()

void guWhiteboard::SwitchSubsumption::from_string ( const std::string &  str)
inline

convert from a string

Definition at line 102 of file SwitchSubsumption.hpp.

References SUBSUMPTION_LEVELS, TOTO_BACKWARDS, TOTO_MOVE_FORWARD, TOTO_NO_COMMAND, TOTO_STOP, TOTO_TURN_LEFT, and TOTO_TURN_RIGHT.

Referenced by SwitchSubsumption().


The documentation for this class was generated from the following file: