All five were charged with robbery and criminal impersonation of a police officer .