コード例 #1
0
 public bool AddRobot(string name, string portname)
 {
     if (portname.Contains("COM"))
     {
         try
         {
             _robot = new SerialComm(portname, 0);
         }
         catch (Exception)
         {
             return(false);
         }
         return(true);
     }
     else if (portname == "SIM")
     {
         _robot = new DummyComm();
         return(true);
     }
     return(false);
 }
コード例 #2
0
 public RobotCellLayer()
 {
     _robot = null;
 }