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

📄 simspark.rb

📁 rcssserver3d Robocup 3D比赛官方指定平台
💻 RB
字号:
## simspark.rb## toggle log file recording$recordLogfile = false# toggle the internal monitor$enableInternalMonitor = truesparkSetupServer()if ($enableInternalMonitor)  sparkSetupRendering()endsparkSetupInput()# sparkAddFPSCamera($scenePath+'camera',#                   -10,-10,5,15,248,4,false,2,10,10)# let spark create a default cameraif ($enableInternalMonitor)  sparkAddFPSCamera(                    $scenePath+'camera',                    x = 0,                    y = -4,                    z = 0.6,                    vAngle = 10.0,                    hAngle = 10.0,                    maxSpeed = 1.5,                    accel = 40.0,                    drag = 4,                    addCollider = false,                    colliderRadius = 2.0                    )end# setup default input bindingsrun "bindings.rb"# setup default materials common to all simulationsrun "scripts/materials.rb"## uncomment for logging setup (see spark.rb for reference)#sparkResetLogging()sparkLogErrorToCerr()#sparkLogAllToCerr()#sparkLogAllToFile('spark.txt')#sparkLogDebugToCerr()## uncomment any of the following to run a simulation## create an arena with a bunch of boxes and spheres# scene = get($scenePath)# scene.importScene('rsg/boxspheres/simspark.rsg')# create an arena to test various joint bodies# scene = get($scenePath)# scene.importScene('rsg/jointtest/simspark.rsg')# source soccersim.rb to run the soccer simulation#run "soccersim.rb"run "naosoccersim.rb"# setup the integrated agent#sparkSetupTrain()#addIntegratedAgent('SoccerbotBehavior',1)# setup game state info rendering for the internal monitor# source soccersim.rb to run the soccer simulationif ($enableInternalMonitor)  run "internalsoccermonitor.rb"end

⌨️ 快捷键说明

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