The researchers control the robots by flashing laser pulses at different photovoltaics, each of which charges up a separate set of legs. By toggling the laser back and forth between the front and back photovoltaics, the robot walks.

Source :https://physics.cornell.edu/itai-cohen