self.supervisor.step(self.timestep) is a Webots method for stepping the controller and needs to be part of a conditional, e.g. from Webots docs:
while supervisor.step(timestep) != -1:
This probably need to change to:
if self.supervisor.step(self.timestep) == -1:
exit()
SupervisorEmitterReceiver class implements the following step method:
self.supervisor.step(self.timestep)
is a Webots method for stepping the controller and needs to be part of a conditional, e.g. from Webots docs:while supervisor.step(timestep) != -1:
This probably need to change to:
to allow for the controller to exit normally.