def _getStatus(self): moduleStatus = [module.status for module in self.modules] robotStatus = allIdle(moduleStatus) and IDLE or BUSY return robotStatus
def _getStatus(self): motorStatus = [motor.status for motor in self.link.motor.values()] logger.debug("motorStatus: %s" % str(motorStatus) ) moduleStatus = allIdle(motorStatus) and IDLE or BUSY logger.debug("moduleStatus: %s" % moduleStatus) return moduleStatus