Programming tunable active dynamics in a self-propelled robot.