Robot vacuums can effectively clean both carpets and rugs in apartments. They are designed to handle various surfaces, including hard floors and carpeted areas, making them a versatile and convenient cleaning option for your apartment.