LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
Debug Server Interface class. More...
#include <debug_client.h>
Public Member Functions | |
DebugClient () | |
init and/or reserve member variables | |
~DebugClient () | |
close connection and files. | |
void | connect (const std::string &hostname, const int port) |
connect to the debug server More... | |
bool | open (const std::string &log_dir, const std::string &teamname, const int unum) |
open debug server message log file. More... | |
void | writeAll (const WorldModel &world, const ActionEffector &effector) |
output to stream or socket More... | |
void | clear () |
clear all data | |
void | addMessage (const char *msg,...) |
add formatted string to buffer More... | |
void | addMessage (const std::string &msg) |
add message string to buffer More... | |
void | addSelfComment (const char *msg,...) |
add formatred message for self More... | |
void | addComment (const PlayerObject *player, const char *msg,...) |
add formatred message for the player More... | |
void | setTarget (const int unum) |
set target player More... | |
void | setTarget (const Vector2D &p) |
set target point More... | |
void | addLine (const Vector2D &from, const Vector2D &to, const char *color="") |
set line info to be drawn More... | |
void | addTriangle (const Vector2D &v1, const Vector2D &v2, const Vector2D &v3, const char *color="") |
set triangle info to be drawn More... | |
void | addTriangle (const Triangle2D &tri, const char *color="") |
set triangle info to be drawn More... | |
void | addRectangle (const Rect2D &rect, const char *color="") |
set rectangle info to be drawn More... | |
void | addCircle (const Vector2D ¢er, const double &radius, const char *color="") |
set circle info to be drawn More... | |
void | addCircle (const Circle2D &circle, const char *color="") |
set circle info to be drawn More... | |
Debug Server Interface class.
Current supported debug servers:
void rcsc::DebugClient::addCircle | ( | const Circle2D & | circle, |
const char * | color = "" |
||
) |
set circle info to be drawn
circle | circle object |
|
inline |
set circle info to be drawn
center | center coordinate |
radius | radius value |
void rcsc::DebugClient::addComment | ( | const PlayerObject * | player, |
const char * | msg, | ||
... | |||
) |
add formatred message for the player
player | pointer to the target player |
msg | formatted text |
void rcsc::DebugClient::addLine | ( | const Vector2D & | from, |
const Vector2D & | to, | ||
const char * | color = "" |
||
) |
set line info to be drawn
from | line start point |
to | line end point |
void rcsc::DebugClient::addMessage | ( | const char * | msg, |
... | |||
) |
add formatted string to buffer
msg | formatted text |
void rcsc::DebugClient::addMessage | ( | const std::string & | msg | ) |
add message string to buffer
msg | message string |
void rcsc::DebugClient::addRectangle | ( | const Rect2D & | rect, |
const char * | color = "" |
||
) |
set rectangle info to be drawn
rect | rectanble object |
void rcsc::DebugClient::addSelfComment | ( | const char * | msg, |
... | |||
) |
add formatred message for self
msg | formatted text |
void rcsc::DebugClient::addTriangle | ( | const Triangle2D & | tri, |
const char * | color = "" |
||
) |
set triangle info to be drawn
tri | triangle object |
|
inline |
set triangle info to be drawn
v1 | vertex 1 |
v2 | vertex 2 |
v3 | vertex 3 |
void rcsc::DebugClient::connect | ( | const std::string & | hostname, |
const int | port | ||
) |
connect to the debug server
hostname | host name string thatdebug server is running |
port | port number for debug server connection |
bool rcsc::DebugClient::open | ( | const std::string & | log_dir, |
const std::string & | teamname, | ||
const int | unum | ||
) |
open debug server message log file.
log_dir | directry path name. |
teamname | team name. |
unum | player's uniform number. |
|
inline |
set target player
unum | target player's uniform number |
|
inline |
set target point
p | target point |
void rcsc::DebugClient::writeAll | ( | const WorldModel & | world, |
const ActionEffector & | effector | ||
) |
output to stream or socket
world | const reference to the world model object |
effector | const reference to the action effector object |