On Tue, November 14, 2006 12:24 am, belinda thom said:
> Hello,
>
> Why do some of the Pyrobot worlds (e.g. Room.py, LightInMaze.py) have
> python help string comments about "world with two robots" when, in
> the source code (in plugins/worlds/Pyrobot), only one robot (robot
> [0]) has been added. In contrast, BigRoomWith2Pioneers.py's string
> says it has two robots, and two are actually added (robot[0], robot[1]).

That's why we shouldn't put comments in code; they just end up wrong :)
Thanks, fixed in CVS.

> If one is to load 3 robots into a world (by opening 3 pyrobot
> instances) do those 3 robots need to be addressed explicitly in the
> simulator's corresponding world file?

Right, first you create a world file with three robots in it, and assign
them port numbers. Then you load the world in the simulator, and can then
connect onto them.

Note that when you select the robot connection named PyrobotRobot.py, you
can specify the host name and port, so you can connect onto a simulator
anywhere across the internet (barring any firewall preventions).

Battlebots, anyone?

-Doug

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


-- 
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