My understanding is that they reconciled both names some time ago, the character's in-universe real name is Dr. Ivo Robotnik and Eggman is the moniker he's known for.
I see Robotnik as an entirely separate character to Eggman. The AOSTH/Mean Bean Machine character was a bumbling idiot, and Robotnik Prime from SATAM/Archie Comics was a brutal overlord.