Robot not destroyed on world reset
Brought to you by:
aroberge
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)
Changing
to
fixes problem.
That is to say
def ResetWorld(self, dummy):
(indented)if self.user_program.isRunning:
(indented twice)return
(indented)self.UpdateWorld()