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

📄 movejoint.cc

📁 The Little Green BATS is the first and so far only Dutch team in the 3D simulation league. We are a
💻 CC
字号:
#include "movejoint.hh"using namespace bats;MoveJoint::MoveJoint(std::string const &id, std::string const &playerClass)  : PrimitiveBehavior("MoveJoint", id, playerClass){  XMLNodeSet params = getParams("/joint");  //_debugLevel4("Params: " << (params.empty() ? "yes" : "no"));    if(!params || params.empty())    throw new BatsException("MoveJoint behavior requires a joint parameter");  else  {    XMLNode jointNode = params.front();    d_joint = (Types::Joint)atoi(jointNode.getContent().c_str());    if (jointNode.hasProp("min"))      d_min = atoi(jointNode.getProp("min").c_str()) * M_PI / 180.0;    else      d_min = -M_PI;    if (jointNode.hasProp("max"))      d_max = atoi(jointNode.getProp("max").c_str()) * M_PI / 180.0;    else      d_max = M_PI;  }}

⌨️ 快捷键说明

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