Continuous activity planning: A target driven approach