A robotic shoe includes a robot sole, a plurality of optical sensors, and projections. The robot sole has an underside capable of contacting the ground when in use. Mounting spaces are longitudinally spaced in the sole. The optical sensors are disposed in respective ones of the mounting spaces. The projections protrude from the underside of the sole, and are capable of contacting the ground at positions corresponding to the mounting spaces.