On Nov 13, 2006, at 9:24 PM, belinda thom wrote:
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]).
I think I've answered the first part of this question: sim.addRobot
adds an additional item to the sim.robot list each time it is called.
Only those robots that need extra devices added need to explicitly be
referred to via their indices.
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?
This one I'm still unsure about.
Thanks,
--b
_______________________________________________
Pyro-users mailing list
[email protected]
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users