public ResponseStatus DoRoute(string target, string action, object[] args) { switch (target) { case "Robot": RobotAgent robot_agent = ether_cat_net.GetRobotAgent(0); return(RobotController.Do(robot_agent, action, args)); case "Camera": // EzCameraController; return(EzCameraController.Do(action, args)); default: throw new System.ArgumentException("No Such Target: ", target); } }