Sample Agent (HelloWorld) not working

Asked by Mina Adel

When attempting to run the sample agent as mentioned in the manual, I get the following error

../../xpath.c:14950: XPath error : NULL context pointer
lt-helloworld: Conf/xmlnodeset.hh:174: bats::XMLNodeSet::XMLNodeSet(xmlXPathObject*): Assertion `node' failed.
Aborted

and can't seem to understand why. Help ?

Question information

Language:
English Edit question
Status:
Answered
For:
littlegreenbats Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Sander van Dijk (sgvandijk) said :
#2

Hey, sorry for the late reply, we put all robocup stuff on the backburner for a bit after Istanbul :)

The configuration module needs to load an XML configuration file, with at least a description of the robot in there. By default it will look for this file at $DATADIR/conf.xml, where $DATADIR is usually /usr/local/share/libbats. You probably have not installed libbats (make install), which is why the configuration file is not found and Conf fails. If you install libbats it should work better, however if you want to test without installing, change line 72 of examples/helloworld/HelloWorldAgent/helloworldagent.hh from:

    : HumanoidAgent(std::string("Hello"))

to:

    : HumanoidAgent(std::string("Hello"), "../../xml/conf.xml")

and run make again.

Can you help with this problem?

Provide an answer of your own, or ask Mina Adel for more information if necessary.

To post a message you must log in.