Skip to content

How to compile XABSL Behavior

Auke Wiggers edited this page Jun 23, 2013 · 4 revisions

XABSL stands for Extensible Agent Behavior Specification Language. The behavior for the agents in NaoTH is written in XABSL. It has to be compiled before it can be used. When you have a fresh installed NaoTH-Project the XABSL behavior is not build, thus, the robot will do nothing because of missing behavior file. The compilation process is the same for all platforms. Here a step by step description how to create it:

XabslEditor

  1. The XabslEditor is a graphical editor for the XABSL. It is implemented in Java and should run on every platform that supports Java (Windows, Linux, Mac, ...). The source and the precompiled binary (*.jar) of the XabsEditor can be downloaded here. The source is organized in a NetBeans project. Download the source and build it in NetBeans or download the binary directly and run the XabsEditor.

  2. Set default compilation path in XabslEditor click Edit->Options set the Default comipation path to following path: <naoth project path>/NaoTHSoccer/Config

  3. Compile behavior in XabslEditor click open file navigate to following subdirectory in your project directory: NaoTHSoccer/Source/Core/Cognition/Modules/BehaviorControl/XABSLBehaviorControl select agents.xabsl and open it click Compile Behavior

The compiler creates a file with the name behavior-ic.dat and copy it to the directory NaoTHSoccer/Config.

Note: for the compilation process it doesn't matter which *.xabsl files of the behavior is opened.

Note2: If the default path is not set, you may risk overwriting existing *.xabsl files.

Clone this wiki locally