Catalyzes the attachment of tryptophan to tRNA(Trp). ATP + L-tryptophan + tRNA(Trp) = AMP + diphosphate + H(+) + L-tryptophanyl-tRNA(Trp) Homodimer. Belongs to the class-I aminoacyl-tRNA synthetase family.