NAOqi Core - Overview | API
ALPreferences allows access to xml preference files and provides convertion to and from ALValues.
A preference as an ALValue array is defined as follows:
A typical preference xml file looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
<ModulePreference
name="aldebaran-robotics.com@ModuleName"
xmlns="http://www.aldebaran-robotics.com/ns/ALPreference"
schemaLocation="ModulePreference.xsd">
<Preference name="key1" description="a string" value="value" type="string" />
<Preference name="key2" description="an int" value="1" type="int" />
<Preference name="key3" description="a bool" value="true" type="bool" />
<Preference name="key4" description="a float" value="1.0" type="float" />
<!-- ... more preferences ... -->
<Preference name="key5" description="a multi-level preference" type="array">
<Preference name="key6" description="inner preference" value="value" type="string" />
<!-- ... more preferences ... -->
</Preference>
</ModulePreference>
On NAO, preferences are typically stored in one of these paths:
These conform to the general patterns: