On Nov 14, 2006, at 8:54 AM, Douglas S. Blank wrote:
So you want to have a client create a new robot? That would be a nice enhancement. Would you send Python expressions to the simulator over the socket? Or have some predefined robots, by name, to add? You can actually send python expressions over a Pyrobot connection, but you need to have a connection to begin with. It sounds complicated to try to tell someone how to use...
I was rather thinking you'd change the world constructor up front so it took an argument of how many robots to create. Then you don't have to write a new world every time the only thing that changes is the number of robots. I suppose you'd have to have a means for giving them initial locations too, so they didn't all sit right on top of each other.
My motivation for such a functionality would be to demo braitenberg robots in class, changing the number of robots in the scene on-the- fly (i.e. each time you start up a simluation).
I've also written scripts to help me get this multiple robot setup working (given how many ways there are to make errors, this seems worthwhile). So my tcsh script could in principle start 1 simulator (via pyro -s...) and then call n robots (via pyro -r... -b...).
_______________________________________________ Pyro-users mailing list [email protected] http://emergent.brynmawr.edu/mailman/listinfo/pyro-users
