code: def encodeMotorInput(self, motorInput):
      
      if not hasattr(motorInput, "__iter__"):
        motorInput = list([motorInput])
  
      return self.motorEncoder.encode(motorInput)
docs: Encode motor command to bit vector.
  
      @param motorInput (1D numpy.array)
          Motor command to be encoded.
  
      @return           (1D numpy.array)
          Encoded motor command.