?? _playing_a_match.tex
字號:
\section{Obtaining binaries}To play a match between agents, you first need a few binaries. Most agents will require a configuration file and come with documentation, so it's a good idea to create a single directory per agent. The Little Green BATWS homepage\cite{homepage} contains a links section which will point you to the binaries\footnote{Old binaries can be found at the koblenz university binaries directory\cite{koblenz}. These can't use the camera however.}.\section{Configuration and running}Ok, so you downloaded the binary and placed in in the directory, say, {\tt agentdirectory}. Now we need to edit the {\tt agendb.xml} file. If you don't have the rights to edit the file, copy it to a local directory and pass it as an argument to {\tt rcsoccersim3D -agentdb}.For every agent you want to be able to use, add an {\tt agent\_type\_external} to the agentdb.\begin{verbatim}<agent_type_external name="agent name"> <inputfd>3</inputfd> <outputfd>4</outputfd> <timer>jiffies 2000</timer> <working_dir>agent dir</working_dir> <exec_line>binary and args</exec_line></agent_type_external>\end{verbatim}Make sure you fill out the \emph{working\_dir} and \emph{exec\_line} and a name you can remember. Make sure \emph{working\_dir} and \emph{exec\_line} contain full paths. If you want to play an agent against itself, make sure you create two entries with different names.Now, run {\tt rcsoccersim3D} once. It will probably not work, but it will create some personal configuration files. We now need to edit: {\tt ~/.rcssserver3d/rcssserver3D.rb}. In the last lines, change the first argument of {\tt spadesServer.queueAgents} to the agent names you just created.Last, but not least, go to a directory where you have write permission and start the simulation with {\tt rcsoccersim3D}\footnote{Don't forget to add {\tt -agentdb agentdb.xml} if you are using a local agentdb.xml file.}.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -