Materials-Based Design Of Autonomous Machines Using 4D Printing