In an effort to stem wartime casualties, the Pentagon is funding research into robots that can perform some of the troops' most dangerous tasks.