> I'm trying to have multiple students running separate
> simulators on the same machine - we only have one machine with Pyro
> installed. Is that possible?

Yes, but it requires an extra step to coordinate what students get what
ports. I just tried this to make sure it works.

You need to specify in the world file what ports will be used by a robot,
and make sure students know what port to connect onto.

So, you could:

1) Make a world file for each student, either by name or number. For
example, if you take a world file in
pyrobot/plugins/world/Pyrobot/Tutorial.py and change the port number from
60000 to 60001, and save this file as
pyrobot/plugins/world/Pyrobot/TutorialDavid.py. Make a second copy, change
the port number to 60002, and save as
pyrobot/plugins/world/Pyrobot/TutorialSara.py

2) Now you need to have a connection for each. You can just use
PyrobotRobot.py and David needs to know that when he starts his world to
select port 60001, and Sara selects 60002. Or you could copy
pyrobot/plugins/robots/PyrobotRobot60000.py to
pyrobot/plugins/robots/PyrobotRobotDavid.py and change the port number in
the file to 60001. The same with Sara's connection file.

I'm not sure how many simulations a single computer can run
simultaneously, but I have tried to make it so that it doesn't use any
more CPU than necessary. Of course, there is a lot of computation going
on. The simulated camera would use up quite a bit of CPU, but otherwise I
think you could probably run dozens on a modern CPU.

This would also work for a single researcher running multiple experiments
simultaneously, but there is another way to do that that doesn't use
sockets, and therefore avoids the whole issue. I also use Python on our
Beowulf cluster. Combined with the ability to run the simulations without
graphics, this speeds up genetic evolutionary simulations.

Hope that helps,

-Doug

-- 
Douglas S. Blank
Associate Professor, Bryn Mawr College
http://cs.brynmawr.edu/~dblank/
Office: 610 526 601


_______________________________________________
Pyro-users mailing list
[email protected]
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users

Reply via email to