A 50-year-old Carlsbad man pleaded guilty in federal court Tuesday, admitting that he committed six robberies of grocery stores and other businesses during a 15-day period in 2021, including several heists where he displayed a handgun.