コード例 #1
0
        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);
            }
        }