On 12/26/2011 07:40 PM, Alex Wood wrote:
Hi,

Just skim read your paper and tried compiling the example you provided
with no luck I am guessing the it is because the paper was written in
2008 and the Stage platform has moved on. I can't find the API for
stage though and the examples provided in the stage/exmaples/ctrl dir
don't have a "main" which makes me believe that they are meant to be
used by something else (I am guessing they are called by the world
file) although there is no documentation showing how they should be
used. Any pointers would be appreciated.

I tried compiling with this command:

g++ -o minimal `pkg-config --cflags stage`  minimal.cc `pkg-config --libs stage`

Thanks Rich for the no GUI info. Just have to find the other option I
need now, back to Google I go.

Thanks guys

Alex


You're right; Stage controllers are built as shared libraries.  Stage loads the controllers and handles calling into them.

You can find a barebones Stage controller at [1], you can use it as a basis along with the controllers provided in the Stage source.  You invoke them by adding the "ctrl" keyword to the Stage worldfile, as shown in the example and simple.world distributed with Stage.  The Stage API for the different model types is given in stage.hh, you can refer to it and to the documentation at [2].

Rich

[1] https://github.com/rtv/stagectrl
[2] http://rtv.github.com/Stage/namespaceStg.html