コード例 #1
0
ファイル: R2Comm.cs プロジェクト: intel-cornellcup/r2bot
 public static Ice.DispatchStatus stopAndGo___(BotToBase obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     bool stopped;
     stopped = is__.readBool();
     inS__.endReadParams();
     obj__.stopAndGo(stopped, current__);
     inS__.writeEmptyParams__();
     return Ice.DispatchStatus.DispatchOK;
 }
コード例 #2
0
ファイル: R2Comm.cs プロジェクト: intel-cornellcup/r2bot
 public static Ice.DispatchStatus updateInventory___(BotToBase obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     int inventory;
     inventory = is__.readInt();
     inS__.endReadParams();
     obj__.updateInventory(inventory, current__);
     inS__.writeEmptyParams__();
     return Ice.DispatchStatus.DispatchOK;
 }
コード例 #3
0
ファイル: R2Comm.cs プロジェクト: intel-cornellcup/r2bot
 public static Ice.DispatchStatus updateObstacleGrid___(BotToBase obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     long[] grid;
     grid = R2D2.ObstacleGridHelper.read(is__);
     inS__.endReadParams();
     obj__.updateObstacleGrid(grid, current__);
     inS__.writeEmptyParams__();
     return Ice.DispatchStatus.DispatchOK;
 }
コード例 #4
0
ファイル: R2Comm.cs プロジェクト: intel-cornellcup/r2bot
 public static Ice.DispatchStatus updatePowerStats___(BotToBase obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     float batteryPercent;
     float voltage;
     float regulatedCurrent;
     float unregulatedCurrent;
     batteryPercent = is__.readFloat();
     voltage = is__.readFloat();
     regulatedCurrent = is__.readFloat();
     unregulatedCurrent = is__.readFloat();
     inS__.endReadParams();
     obj__.updatePowerStats(batteryPercent, voltage, regulatedCurrent, unregulatedCurrent, current__);
     inS__.writeEmptyParams__();
     return Ice.DispatchStatus.DispatchOK;
 }
コード例 #5
0
ファイル: R2Comm.cs プロジェクト: intel-cornellcup/r2bot
 public static Ice.DispatchStatus updateBotPosition___(BotToBase obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     R2D2.BotPosition enc;
     enc = new R2D2.BotPosition();
     R2D2.BotPosition imu;
     imu = new R2D2.BotPosition();
     enc.read__(is__);
     imu.read__(is__);
     inS__.endReadParams();
     obj__.updateBotPosition(enc, imu, current__);
     inS__.writeEmptyParams__();
     return Ice.DispatchStatus.DispatchOK;
 }