📄 serversettings.h
字号:
bool setDashPowerRate ( double d );
double getDashPowerRate ( ) const;
bool setKickPowerRate ( double d );
double getKickPowerRate ( ) const;
bool setKickRand ( double d );
double getKickRand ( ) const;
// set- and get methods for parameters related
// to visual and auditory perception range
bool setVisibleAngle ( double d );
double getVisibleAngle ( ) const;
bool setAudioCutDist ( double d );
double getAudioCutDist ( ) const;
// set- and get methods for quantization parameters
bool setQuantizeStep ( double d );
double getQuantizeStep ( ) const;
bool setQuantizeStepL ( double d );
double getQuantizeStepL ( ) const;
// set- and get methods for range parameters for basic actuator commands
bool setMaxPower ( int i ) ;
int getMaxPower ( ) const;
bool setMinPower ( int i ) ;
int getMinPower ( ) const;
bool setMaxMoment ( int i ) ;
int getMaxMoment ( ) const;
bool setMinMoment ( int i ) ;
int getMinMoment ( ) const;
bool setMaxNeckMoment ( int i ) ;
int getMaxNeckMoment ( ) const;
bool setMinNeckMoment ( int i ) ;
int getMinNeckMoment ( ) const;
bool setMaxNeckAng ( int i ) ;
int getMaxNeckAng ( ) const;
bool setMinNeckAng ( int i ) ;
int getMinNeckAng ( ) const;
// set- and get methods for port-related parameters
bool setPort ( int i ) ;
int getPort ( ) const;
bool setCoachPort ( int i ) ;
int getCoachPort ( ) const;
bool setOlCoachPort ( int i ) ;
int getOlCoachPort ( ) const;
// set- and get methods for coach-related parameters
bool setSayCoachCntMax ( int i ) ;
int getSayCoachCntMax ( ) const;
bool setSayCoachMsgSize ( int i ) ;
int getSayCoachMsgSize ( ) const;
bool setClangWinSize ( int i ) ;
int getClangWinSize ( ) const;
bool setClangDefineWin ( int i ) ;
int getClangDefineWin ( ) const;
bool setClangMetaWin ( int i ) ;
int getClangMetaWin ( ) const;
bool setClangAdviceWin ( int i ) ;
int getClangAdviceWin ( ) const;
bool setClangInfoWin ( int i ) ;
int getClangInfoWin ( ) const;
bool setClangMessDelay ( int i ) ;
int getClangMessDelay ( ) const;
bool setClangMessPerCycle ( int i ) ;
int getClangMessPerCycle ( ) const;
bool setSendViStep ( int i ) ;
int getSendViStep ( ) const;
// set- and get methods for time-related parameters
bool setSimulatorStep ( int i ) ;
int getSimulatorStep ( ) const;
bool setSendStep ( int i ) ;
int getSendStep ( ) const;
bool setRecvStep ( int i ) ;
int getRecvStep ( ) const;
bool setHalfTime ( int i ) ;
int getHalfTime ( ) const;
bool setDropBallTime ( int i ) ;
int getDropBallTime ( ) const;
// set- and get methods for speech-related parameters
bool setSayMsgSize ( int i ) ;
int getSayMsgSize ( ) const;
// set- and get methods for offside-related parameters
bool setUseOffside ( bool b ) ;
bool getUseOffside ( ) const;
bool setOffsideActiveAreaSize ( double d ) ;
double getOffsideActiveAreaSize ( ) const;
bool setForbidKickOffOffside ( bool b ) ;
bool getForbidKickOffOffside ( ) const;
bool setOffsideKickMargin ( double d ) ;
double getOffsideKickMargin ( ) const;
// set- and get methods for log-related parameters
bool setVerbose ( bool b ) ;
bool getVerbose ( ) const;
bool setRecordVersion ( int i ) ;
int getRecordVersion ( ) const;
bool setRecordLog ( bool b ) ;
bool getRecordLog ( ) const;
bool setSendLog ( bool b ) ;
bool getSendLog ( ) const;
bool setLogTimes ( bool b ) ;
bool getLogTimes ( ) const;
bool setLogFile ( char *str ) ;
char* getLogFile ( ) ;
bool setSynchMode ( bool b ) ;
bool getSynchMode ( ) const;
bool setFullStateLeft ( bool b ) ;
bool getFullStateLeft ( ) const;
bool setFullStateRight ( bool b ) ;
bool getFullStateRight ( ) const;
// set- and get methods for heterogeneous player parameters from player.conf
bool setPlayerTypes ( int i ) ;
int getPlayerTypes ( ) const;
bool setSubsMax ( int i ) ;
int getSubsMax ( ) const;
bool setPlayerSpeedMaxDeltaMin ( double d ) ;
double getPlayerSpeedMaxDeltaMin ( ) const;
bool setPlayerSpeedMaxDeltaMax ( double d ) ;
double getPlayerSpeedMaxDeltaMax ( ) const;
bool setStaminaIncMaxDeltaFactor ( double d ) ;
double getStaminaIncMaxDeltaFactor ( ) const;
bool setPlayerDecayDeltaMin ( double d ) ;
double getPlayerDecayDeltaMin ( ) const;
bool setPlayerDecayDeltaMax ( double d ) ;
double getPlayerDecayDeltaMax ( ) const;
bool setInertiaMomentDeltaFactor ( double d ) ;
double getInertiaMomentDeltaFactor ( ) const;
bool setDashPowerRateDeltaMin ( double d ) ;
double getDashPowerRateDeltaMin ( ) const;
bool setDashPowerRateDeltaMax ( double d ) ;
double getDashPowerRateDeltaMax ( ) const;
bool setPlayerSizeDeltaFactor ( double d ) ;
double getPlayerSizeDeltaFactor ( ) const;
bool setKickableMarginDeltaMin ( double d ) ;
double getKickableMarginDeltaMin ( ) const;
bool setKickableMarginDeltaMax ( double d ) ;
double getKickableMarginDeltaMax ( ) const;
bool setKickRandDeltaFactor ( double d ) ;
double getKickRandDeltaFactor ( ) const;
bool setExtraStaminaDeltaMin ( double d ) ;
double getExtraStaminaDeltaMin ( ) const;
bool setExtraStaminaDeltaMax ( double d ) ;
double getExtraStaminaDeltaMax ( ) const;
bool setEffortMaxDeltaFactor ( double d ) ;
double getEffortMaxDeltaFactor ( ) const;
bool setEffortMinDeltaFactor ( double d ) ;
double getEffortMinDeltaFactor ( ) const;
bool setNewDashPowerRateDeltaMin ( double d ) ;
double getNewDashPowerRateDeltaMin ( ) const;
bool setNewDashPowerRateDeltaMax ( double d ) ;
double getNewDashPowerRateDeltaMax ( ) const;
bool setNewStaminaIncMaxDeltaFactor( double d ) ;
double getNewStaminaIncMaxDeltaFactor( ) const;
// penalty parameters
bool setPenDistX ( double d ) ;
double getPenDistX ( ) const;
bool setPenMaxGoalieDistX ( double d ) ;
double getPenMaxGoalieDistX ( ) const;
bool setPenAllowMultKicks ( bool b ) ;
bool getPenAllowMultKicks ( ) const;
// tackle parameters
bool setTackleDist ( double d ) ;
double getTackleDist ( ) const;
bool setTackleBackDist ( double d ) ;
double getTackleBackDist ( ) const;
bool setTackleWidth ( double d ) ;
double getTackleWidth ( ) const;
bool setTackleExponent ( double d ) ;
double getTackleExponent ( ) const;
bool setTackleCycles ( int i ) ;
int getTackleCycles ( ) const;
bool setTacklePowerRate ( double d ) ;
double getTacklePowerRate ( ) const;
// set- and get methods for parameters not in server.conf or player.conf
bool setEffortMax ( double d ) ;
double getEffortMax ( ) const;
bool setSlowDownFactor ( int i ) ;
int getSlowDownFactor ( ) const;
bool setVisibleDistance ( double d ) ;
double getVisibleDistance ( ) const;
bool setExtraStamina ( double d ) ;
double getExtraStamina ( ) const;
// set- and get methods for parameters which depend on other values
bool setMaximalKickDist ( double d ) ;
double getMaximalKickDist ( ) const;
};
/******************************************************************************/
/******************** CLASS HETEROPLAYERTYPES *****************************/
/******************************************************************************/
/*! This class contains all the SoccerServer parameters which together define a
heterogeneous player type. For each player type these parameters are
initialized when the server is started. */
class HeteroPlayerSettings
{
// public member data
public:
double dPlayerSpeedMax; /*!< player_speed_max: maximum speed of a player */
double dStaminaIncMax; /*!< stamina_inc_max: maximum stamina increase of a
player per cycle */
double dPlayerDecay; /*!< player_decay: player speed decay per cycle */
double dInertiaMoment; /*!< inertia_moment: inertia moment of a player;
affects actual turn angle depending on speed*/
double dDashPowerRate; /*!< dash_power_rate: rate by which the 'Power'
argument in a 'dash' command is multiplied
(thus determining the amount of displacement
of the player as a result of the 'dash') */
double dPlayerSize; /*!< dash_power_rate: rate by which the 'Power'
argument in a 'dash' command is multiplied
(thus determining the amount of displacement
of the player as a result of the 'dash') */
double dKickableMargin; /*!< kickable_margin: margin around player in which
ball is kickable; kickable area thus equals
kickable_margin + ball_size + player_size */
double dKickRand; /*!< kick_rand: random error in kick direction */
double dExtraStamina; /*!< extra_stamina: extra stamina for heterogeneous
player */
double dEffortMax; /*!< effort_max: maximum value for player effort */
double dEffortMin; /*!< effort_min: minimum value for player effort */
double dMaximalKickDist; /*!< the maximum distance from a player for
which the ball is still kickable */
void show( ostream &os = cout );
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -