generategoal.cc
来自「2007年机器人足球世界杯3D仿真组亚军于07年底的源程序。该队还于2008年获」· CC 代码 · 共 19 行
CC
19 行
#include "scriptplayer.ih"rf<Behavior::Goal> ScriptPlayer::generateGoal(unsigned step, unsigned slot){ d_committed = true; vector<pair<double, double> > scriptLine = d_script[d_curLine]; rf<Goal> goal = new Goal(); rf<OrNode> dis = goal->addDisjunct(); rf<AndNode> con = dis->addConjunct(); // _debugLevel4("Angle for slot " << slot << ": " << scriptLine[slot].first << " (now: " << wm.getJointAngle((Types::Joint)slot).getMu() << ")"); con->addVar("Angle", scriptLine[slot].first, scriptLine[slot].first); con->addVar("MaxSpeed", scriptLine[slot].second, scriptLine[slot].second); return goal;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?