player_config.h

説明を見る。
00001 // -*-c++-*-
00002 
00008 /*
00009  *Copyright:
00010 
00011  Copyright (C) Hidehisa AKIYAMA
00012 
00013  This code is free software; you can redistribute it and/or
00014  modify it under the terms of the GNU Lesser General Public
00015  License as published by the Free Software Foundation; either
00016  version 2.1 of the License, or (at your option) any later version.
00017 
00018  This library is distributed in the hope that it will be useful,
00019  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  Lesser General Public License for more details.
00022 
00023  You should have received a copy of the GNU Lesser General Public
00024  License along with this library; if not, write to the Free Software
00025  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026 
00027  *EndCopyright:
00028  */
00029 
00031 
00032 #ifndef RCSC_PLAYER_PLAYER_CONFIG_H
00033 #define RCSC_PLAYER_PLAYER_CONFIG_H
00034 
00035 #include <string>
00036 
00037 namespace rcsc {
00038 
00039 class ParamMap;
00040 
00045 class PlayerConfig {
00046 private:
00047 
00048     // basic setting
00049 
00050     std::string M_team_name; 
00051     double      M_version; 
00052     int         M_reconnect_number; 
00053     bool        M_goalie; 
00054 
00055     int M_interval_msec; 
00056     int M_server_wait_seconds; 
00057 
00059     int M_wait_time_thr_synch_view;
00061     int M_wait_time_thr_nosynch_view;
00062 
00064     int M_normal_view_time_thr;
00065 
00066     std::string M_rcssserver_host; 
00067     int         M_rcssserver_port; 
00068 
00069     int M_compression; 
00070 
00071     int M_clang_min; 
00072     int M_clang_max; 
00073 
00074     bool M_use_communication; 
00075     bool M_hear_opponent_audio; 
00076 
00077     bool M_use_fullstate; 
00078 
00079     bool M_synch_see; 
00080 
00081     // confidence value
00082 
00083     int M_self_pos_count_thr; 
00084     int M_self_vel_count_thr; 
00085     int M_self_face_count_thr; 
00086 
00087     int M_ball_pos_count_thr; 
00088     int M_ball_rpos_count_thr; 
00089     int M_ball_vel_count_thr; 
00090 
00091     int M_player_pos_count_thr; 
00092     int M_player_vel_count_thr; 
00093     int M_player_face_count_thr; 
00094 
00095 
00097     std::string M_config_dir;
00099     int M_player_number;
00100 
00101 
00102     // debug
00103 
00104     bool M_debug_connect; 
00105     std::string M_debug_server_host; 
00106     int  M_debug_server_port; 
00107     bool M_debug_write; 
00108 
00110     std::string M_log_dir;
00111 
00113     std::string M_log_ext;
00114 
00115     // debug outut switches
00116     bool M_debug; 
00117     bool M_debug_system;
00118     bool M_debug_sensor;
00119     bool M_debug_world;
00120     bool M_debug_action;
00121     bool M_debug_intercept;
00122     bool M_debug_kick;
00123     bool M_debug_dribble;
00124     bool M_debug_pass;
00125     bool M_debug_cross;
00126     bool M_debug_shoot;
00127     bool M_debug_clear;
00128     bool M_debug_team;
00129     bool M_debug_role;
00130 
00131 public:
00132 
00136     PlayerConfig();
00137 
00141     ~PlayerConfig();
00142 
00143 
00148     void createParamMap( ParamMap & param_map );
00149 
00150 
00151 protected:
00155     void setDefaultParam();
00156 
00157 public:
00158 
00159     // basic settings
00160     const
00161     std::string & teamName() const
00162       {
00163           return M_team_name;
00164       }
00165     const
00166     double & version() const
00167       {
00168           return M_version;
00169       }
00170 
00171     int reconnectNumber() const
00172       {
00173           return M_reconnect_number;
00174       }
00175 
00176     bool goalie() const
00177       {
00178           return M_goalie;
00179       }
00180 
00181     int intervalMSec() const
00182       {
00183           return M_interval_msec;
00184       }
00185 
00186     int serverWaitSeconds() const
00187       {
00188           return M_server_wait_seconds;
00189       }
00190 
00191     int waitTimeThrSynchView() const
00192       {
00193           return M_wait_time_thr_synch_view;
00194       }
00195 
00196     int waitTimeThrNoSynchView() const
00197       {
00198           return M_wait_time_thr_nosynch_view;
00199       }
00200 
00201     int normalViewTimeThr() const
00202       {
00203           return M_normal_view_time_thr;
00204       }
00205 
00206     const
00207     std::string & host() const
00208       {
00209           return M_rcssserver_host;
00210       }
00211 
00212     int port() const
00213       {
00214           return M_rcssserver_port;
00215       }
00216 
00217     int compression() const
00218       {
00219           return M_compression;
00220       }
00221 
00222     int clangMin() const
00223       {
00224           return M_clang_min;
00225       }
00226 
00227     int clangMax() const
00228       {
00229           return M_clang_max;
00230       }
00231 
00232 
00233     bool useCommunication() const
00234       {
00235           return M_use_communication;
00236       }
00237 
00238     bool hearOpponentAudio() const
00239       {
00240           return M_hear_opponent_audio;
00241       }
00242 
00243     bool useFullstate() const
00244       {
00245           return M_use_fullstate;
00246       }
00247 
00248     bool synchSee() const
00249       {
00250           return M_synch_see;
00251       }
00252 
00253     // confidence value
00254 
00255     int selfPosCountThr() const
00256       {
00257           return M_self_pos_count_thr;
00258       }
00259 
00260     int selfVelCountThr() const
00261       {
00262           return M_self_vel_count_thr;
00263       }
00264 
00265     int selfFaceCountThr() const
00266       {
00267           return M_self_face_count_thr;
00268       }
00269 
00270     int ballPosCountThr() const
00271       {
00272           return M_ball_pos_count_thr;
00273       }
00274 
00275     int ballRPosCountThr() const
00276       {
00277           return M_ball_rpos_count_thr;
00278       }
00279 
00280     int ballVelCountThr() const
00281       {
00282           return M_ball_vel_count_thr;
00283       }
00284 
00285     int playerPosCountThr() const
00286       {
00287           return M_player_pos_count_thr;
00288       }
00289 
00290     int playerVelCountThr() const
00291       {
00292           return M_player_vel_count_thr;
00293       }
00294 
00295     int playerFaceCountThr() const
00296       {
00297           return M_player_face_count_thr;
00298       }
00299 
00300     const
00301     std::string & configDir() const
00302       {
00303           return M_config_dir;
00304       }
00305 
00306     int playerNumber() const
00307       {
00308           return M_player_number;
00309       }
00310 
00311     void setPlayerNumber( const int num )
00312       {
00313           M_player_number = num;
00314       }
00315 
00316     // debug
00317 
00318     bool debugConnect() const
00319       {
00320           return M_debug_connect;
00321       }
00322 
00323     const
00324     std::string & debugServerHost() const
00325       {
00326           return M_debug_server_host;
00327       }
00328 
00329     int debugServerPort() const
00330       {
00331           return M_debug_server_port;
00332       }
00333 
00334     bool debugWrite() const
00335       {
00336           return M_debug_write;
00337       }
00338 
00339     const
00340     std::string & logDir() const
00341       {
00342           return M_log_dir;
00343       }
00344 
00345     const
00346     std::string & logExt() const
00347       {
00348           return M_log_ext;
00349       }
00350 
00351     bool debug() const
00352       {
00353           return M_debug;
00354       }
00355 
00356     bool debugSystem() const
00357       {
00358           return M_debug_system;
00359       }
00360 
00361     bool debugSensor() const
00362       {
00363           return M_debug_sensor;
00364       }
00365 
00366     bool debugWorld() const
00367       {
00368           return M_debug_world;
00369       }
00370 
00371     bool debugAction() const
00372       {
00373           return M_debug_action;
00374       }
00375 
00376     bool debugIntercept() const
00377       {
00378           return M_debug_intercept;
00379       }
00380 
00381     bool debugKick() const
00382       {
00383           return M_debug_kick;
00384       }
00385 
00386     bool debugDribble() const
00387       {
00388           return M_debug_dribble;
00389       }
00390 
00391     bool debugPass() const
00392       {
00393           return M_debug_pass;
00394       }
00395 
00396     bool debugCross() const
00397       {
00398           return M_debug_cross;
00399       }
00400 
00401     bool debugShoot() const
00402       {
00403           return M_debug_shoot;
00404       }
00405 
00406     bool debugClear() const
00407       {
00408           return M_debug_clear;
00409       }
00410 
00411     bool debugTeam() const
00412       {
00413           return M_debug_team;
00414       }
00415 
00416     bool debugRole() const
00417       {
00418           return M_debug_role;
00419       }
00420 
00421 };
00422 
00423 }
00424 
00425 #endif

librcscに対してThu May 1 15:41:21 2008に生成されました。  doxygen 1.5.0