Origami-inspired robots can sense, analyze and act in challenging environments