-
That is to say
def ResetWorld(self, dummy):
(indented)if self.user_program.isRunning:
(indented twice)return
(indented)self.UpdateWorld()
2009-01-26 13:35:34 UTC in RUR: a Python Learning Environment
-
Changing
def ResetWorld(self, dummy):
if self.isRunning:
return
self.UpdateWorld()
to
def ResetWorld(self, dummy):
if self.user_program.isRunning:
return
self.UpdateWorld()
fixes problem.
2009-01-26 12:04:22 UTC in RUR: a Python Learning Environment
-
If you reset the world before stopping your robot the robot becomes invisible but still carries out your commands.
Load harvest3.wld in "Robot: Code and Learn"
Load en_harvest3a.rur
start program
reset world before all beepers are picked up
You'll see the beepers continue to disappear though the robot is nowhere to be seen.
(Occured on Windows XP, 100% reprorate, reproduced 10 times)
2009-01-26 11:54:28 UTC in RUR: a Python Learning Environment