Added filename parameter to locomotionPlanner