Hello Tyler Gunn:
       now, i can run the stage wifi.world on my desktop.although the warnings exist.then i will learn more about how they work.
        thanks for you help!


2009/11/29 Tyler Gunn <tyler@egunn.com>
Hello:
    the second problem is about warnings when i make them:
/home/jiangc/stage/libstage/model_wifi.cc: In constructor ‘Stg::ModelWifi::ModelWifi(Stg::World*, Stg::Model*, const std::string&)’:
/home/jiangc/stage/libstage/model_wifi.cc:341: warning£º neglect  the "size_t fread(void*, size_t, size_t, FILE*)"return value of the "warn_unused_result"  property in statement.
/home/jiangc/stage/libstage/model_wifi.cc: In constructor ‘Stg::ModelWifi::ModelWifi(Stg::World*, Stg::Model*, const std::string&)’:
/home/jiangc/stage/libstage/model_wifi.cc:341: warning:neglect the "size_t fread(void*, size_t, size_t, FILE*)" return value of the "warn_unused_result" property in statement.
/home/jiangc/stage/libstage/model_wifi.cc: In constructor ‘Stg::ModelWifi::ModelWifi(Stg::World*, Stg::Model*, const std::string&)’:
/home/jiangc/stage/libstage/model_wifi.cc:341: warning£º neglect the "size_t fread(void*,
size_t, size_t, FILE*)" return value of the "warn_unused_result" property in statement.
   I think there maybe some bugs about the model_wifi.cc .but i don't find it out.

Okay, I see what it's complaining about there.  I do a read of /dev/random to get some random stuff to seed the random generator with.  I guess fread has a return value I'm ignoring.  That shouldn't cause aberrant behaviour though.


   the last problem appears when i input player wifi.cfg.
   I use the  player-3.0.0, running Ubuntu 8.10 on an x86.Shoud i use another player vertion?
running stage wifi.world is only a still image.I want to see how them working by running player wifi.world .

When running stage wifi.world, the simulator defaults to the paused state.  In the status bar of the screen it'll likely say "Paused".  Just choose "Pause" from under the "Run" menu and the robots should start moving.  The example controller, wander_wifi, causes the robots to randomly wander, while communicating with one another.

I almost guarantee that the wifi is not going to work from player.  I did not update the wifi facilities in player since I'm only using stage for my work.  If you want to update the player codebase, you'll need to first modify the file stage/libstageplugin/p_wifi.cc to properly pass the wifi data over to player.