goalie info message encoder
More...
#include <say_message_builder.h>
|
| | GoalieMessage (const int goalie_unum, const Vector2D &goalie_pos, const AngleDeg &goalie_body) |
| | construct with raw information More...
|
| |
| char | header () const |
| | get the header character of this message More...
|
| |
| int | length () const |
| | get the length of this message More...
|
| |
| bool | appendTo (std::string &to) const |
| | append this info to the audio message More...
|
| |
| std::ostream & | printDebug (std::ostream &os) const |
| | append the debug message More...
|
| |
|
virtual | ~SayMessage ()=default |
| | virtual destruct. do nothing.
|
| |
| virtual char | header () const =0 |
| | pure virtual method. get the header character of this message More...
|
| |
| virtual int | length () const =0 |
| | pure virtual method. get the length of this message More...
|
| |
| virtual bool | appendTo (std::string &to) const =0 |
| | append an audio message to the string More...
|
| |
| virtual std::ostream & | printDebug (std::ostream &os) const =0 |
| | append the debug message More...
|
| |
|
|
typedef std::shared_ptr< const SayMessage > | Ptr |
| | definition of the smart pointer type.
|
| |
|
| SayMessage ()=default |
| | protected constructer
|
| |
goalie info message encoder
format: "g<pos_body:4>" the length of message == 5
◆ GoalieMessage()
| rcsc::GoalieMessage::GoalieMessage |
( |
const int |
goalie_unum, |
|
|
const Vector2D & |
goalie_pos, |
|
|
const AngleDeg & |
goalie_body |
|
) |
| |
|
inline |
construct with raw information
- Parameters
-
| goalie_unum | goalie's uniform number |
| goalie_pos | goalie's global position |
| goalie_body | goalie's body direction |
◆ appendTo()
| bool rcsc::GoalieMessage::appendTo |
( |
std::string & |
to | ) |
const |
|
virtual |
append this info to the audio message
- Parameters
-
| to | reference to the message string instance |
- Returns
- result status of encoding
Implements rcsc::SayMessage.
◆ header()
| char rcsc::GoalieMessage::header |
( |
| ) |
const |
|
inlinevirtual |
get the header character of this message
- Returns
- header character of this message
Implements rcsc::SayMessage.
◆ length()
| int rcsc::GoalieMessage::length |
( |
| ) |
const |
|
inlinevirtual |
get the length of this message
- Returns
- the length of encoded message
Implements rcsc::SayMessage.
◆ printDebug()
| std::ostream & rcsc::GoalieMessage::printDebug |
( |
std::ostream & |
os | ) |
const |
|
virtual |
append the debug message
- Parameters
-
| os | reference to the output stream |
- Returns
- reference to the output stream
Implements rcsc::SayMessage.
◆ slength()
| static int rcsc::GoalieMessage::slength |
( |
| ) |
|
|
inlinestatic |
get the length of this message.
- Returns
- the length of encoded message
The documentation for this class was generated from the following file: