I'm not entirely sure where this problem is being caused, but here's
the situation:
I've got stage configured with two robots and a connection to the
simulation interface. After about five minutes stage freezes up
entirely and the javaclients do as well (freezing on readAll()). (but
my other code continues to chug along).
What makes this interesting is that after killing the javaclients,
stage resumes, which leads me to believe a communications buffer might
be flooded.
Has anyone experienced something similar?
Now I am doing things a tad differently. First, I'm not running
threaded. Instead I'm using executors to parallelize a large amount of
the processing. At the top of each iteration, readAll() is called for
each bot, and then separate executors do the sensor processing. After
all the sensors are processed then new commands are issued (on the
same thread that did the reading so there is no concern about sending
munged commands due to different threads writing to the port).
The PlayerClients are instantiated as normal but I make no calls to
runThreaded() or setNotThreaded() (since it defaults to not threaded).
...
Anthony M. Harrison, PhD
Cognitive Robotics & Human-Robot Interaction
Naval Research Laboratory
|