クラス rcsc::DebugClient

Debug Server Interface class. [詳細]

#include <debug_client.h>

すべてのメンバ一覧

Public 型

enum  ServerType { SoccerViewer, SoccerWindow2 }

Public メソッド

 DebugClient ()
 init member variables
 ~DebugClient ()
 close connection
void connect (const std::string &hostname, const int port)
 connect to the debug server
void setWriteMode (const bool on)
 set write mode
void writeAll (const WorldModel &world)
 output to stream or socket
void clear ()
 clear all data
void addMessage (const char *msg,...)
 add formated string to buffer
void setTarget (const int unum)
 set target player
void setTarget (const Vector2D &p)
 set target point
void addLine (const Vector2D &from, const Vector2D &to)
 set line info to be drawn
void addTriangle (const Vector2D &v1, const Vector2D &v2, const Vector2D &v3)
 set triangle info to be drawn
void addTriangle (const Triangle2D &tri)
 set triangle info to be drawn
void addRectangle (const Rect2D &rect)
 set rectangle info to be drawn
void addCircle (const Vector2D &center, const double &radius)
 set circle info to be drawn
void addCircle (const Circle2D &circle)
 set circle info to be drawn

Static Public 変数

static const std::size_t MAX_LINE = 50
static const std::size_t MAX_TRIANGLE = 50
static const std::size_t MAX_RECT = 50
static const std::size_t MAX_CIRCLE = 50


説明

Debug Server Interface class.

Current supported debug servers:


関数

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

void rcsc::DebugClient::writeAll ( const WorldModel world  ) 

output to stream or socket

引数:
world const reference to the world mode object

void rcsc::DebugClient::setTarget ( const int  unum  )  [inline]

set target player

引数:
unum target player's uniform number

void rcsc::DebugClient::setTarget ( const Vector2D p  )  [inline]

set target point

引数:
p target point

void rcsc::DebugClient::addLine ( const Vector2D from,
const Vector2D to 
)

set line info to be drawn

引数:
from line start point
to line end point

void rcsc::DebugClient::addTriangle ( const Vector2D v1,
const Vector2D v2,
const Vector2D v3 
) [inline]

set triangle info to be drawn

引数:
v1 vertex 1
v2 vertex 2
v3 vertex 3

void rcsc::DebugClient::addTriangle ( const Triangle2D tri  ) 

set triangle info to be drawn

引数:
tri triangle object

void rcsc::DebugClient::addRectangle ( const Rect2D rect  ) 

set rectangle info to be drawn

引数:
rect rectanble object

void rcsc::DebugClient::addCircle ( const Vector2D center,
const double &  radius 
) [inline]

set circle info to be drawn

引数:
center center coordinate
radius radius value

void rcsc::DebugClient::addCircle ( const Circle2D circle  ) 

set circle info to be drawn

引数:
circle circle object


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0