⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 neck_cmd_bms.h

📁 这是bs球队的仿真2D比赛程序
💻 H
字号:
/*Brainstormers 2D (Soccer Simulation League 2D)PUBLIC SOURCE CODE RELEASE 2005Copyright (C) 1998-2005 Neuroinformatics Group,                        University of Osnabrueck, GermanyThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.*/#ifndef _NECK_CMD_BMS_H_#define _NECK_CMD_BMS_H_/* This contains the interface to the base commands of soccer server.   */#include "../base_bm.h"#include "types.h"#include "cmd.h"#include "log_macros.h"#include "mdp_info.h"class NeckCmd : public BaseBehavior {  static bool initialized;  Value moment;   public:  void set_turn_neck_abs(Value abs_dir_P) {     moment = mdpInfo::moment_to_turn_neck_to_abs( abs_dir_P );  }    void set_turn_neck_rel(Value rel_dir_P) {     moment = mdpInfo::moment_to_turn_neck_to_rel( rel_dir_P );  }  void set_turn_neck(Value moment_P) {    moment = moment_P;  }  bool get_cmd(Cmd &cmd) {    if(!cmd.cmd_neck.is_lock_set()) {          cmd.cmd_neck.set_turn( moment );    } else {      ERROR_OUT << " ERROR IN NECK_CMD BEHAVIOR: NECK CMD WAS ALREADY SET!!!";    }    return true;  }    static bool init(char const * conf_file, int argc, char const* const* argv) {    if(initialized) return true;    initialized = true;    return true;  }  NeckCmd() {}  virtual ~NeckCmd() {}};#endif // _NECK_CMD_BMS_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -