mirror of
https://github.com/wassname/pyrobolearn.git
synced 2026-09-10 12:21:16 +08:00
fix robot.py for python 3.*
This commit is contained in:
@@ -316,14 +316,14 @@ class Robot(ControllableBody):
|
||||
|
||||
def sense(self):
|
||||
"""Run all the sensors."""
|
||||
for sensors in self.sensors.itervalues():
|
||||
for sensors in self.sensors.values():
|
||||
for sensor in sensors:
|
||||
sensor.clean()
|
||||
sensor.sense()
|
||||
|
||||
def act(self):
|
||||
"""Run all the actuators."""
|
||||
for actuators in self.actuators.itervalues():
|
||||
for actuators in self.actuators.values():
|
||||
for actuator in actuators:
|
||||
actuator()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user