The Riot Trooper is part of the empire. It was a different kind of Imperial Guard,which did not protect the Emperor or Vader,but guarded important sites for the Empire. You must fight them to escape Kamino. They fight with an electro staff. They can block most lightsaber attacks but, can be defeated easier by the force. They also appear on other worlds such as Cato Niemoidia.