Borrowing from nature, some machines now have arms that curl and grip like an octopus, others wriggle their way inside an airplane engine or forage underwater to create their own energy.