|
@@ -1038,7 +1038,7 @@ namespace TeamAAS_VP.Services
|
|
|
|
|
|
|
|
//移动机器人至中心位置
|
|
//移动机器人至中心位置
|
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
|
|
|
- if (isSuccess)
|
|
|
|
|
|
|
+ if (!isSuccess)
|
|
|
{
|
|
{
|
|
|
return (false, null, null, null);
|
|
return (false, null, null, null);
|
|
|
}
|
|
}
|
|
@@ -1071,7 +1071,7 @@ namespace TeamAAS_VP.Services
|
|
|
{
|
|
{
|
|
|
//移动机器人至中心位置
|
|
//移动机器人至中心位置
|
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
|
|
|
- if (isSuccess)
|
|
|
|
|
|
|
+ if (!isSuccess)
|
|
|
{
|
|
{
|
|
|
return (false, null, null, null);
|
|
return (false, null, null, null);
|
|
|
}
|
|
}
|
|
@@ -1276,7 +1276,7 @@ namespace TeamAAS_VP.Services
|
|
|
{
|
|
{
|
|
|
//移动机器人至中心位置
|
|
//移动机器人至中心位置
|
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
|
|
|
- if (isSuccess)
|
|
|
|
|
|
|
+ if (!isSuccess)
|
|
|
{
|
|
{
|
|
|
return (false, null, null, null);
|
|
return (false, null, null, null);
|
|
|
}
|
|
}
|
|
@@ -1306,7 +1306,7 @@ namespace TeamAAS_VP.Services
|
|
|
if (calibrationInfo.CameraMount == Enums.CameraMount.FixedDown)
|
|
if (calibrationInfo.CameraMount == Enums.CameraMount.FixedDown)
|
|
|
{
|
|
{
|
|
|
isSuccess= await robot.CalibMotionAsync(rPoints[i], null);
|
|
isSuccess= await robot.CalibMotionAsync(rPoints[i], null);
|
|
|
- if (isSuccess)
|
|
|
|
|
|
|
+ if (!isSuccess)
|
|
|
{
|
|
{
|
|
|
return (false, null, null, null);
|
|
return (false, null, null, null);
|
|
|
}
|
|
}
|
|
@@ -1318,7 +1318,7 @@ namespace TeamAAS_VP.Services
|
|
|
await robot.CalibOutIOAsync(false);
|
|
await robot.CalibOutIOAsync(false);
|
|
|
//移动机器人至待机位置
|
|
//移动机器人至待机位置
|
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.HomePoint, null);
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.HomePoint, null);
|
|
|
- if (isSuccess)
|
|
|
|
|
|
|
+ if (!isSuccess)
|
|
|
{
|
|
{
|
|
|
return (false, null, null, null);
|
|
return (false, null, null, null);
|
|
|
}
|
|
}
|
|
@@ -1326,7 +1326,7 @@ namespace TeamAAS_VP.Services
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
isSuccess= await robot.CalibMotionAsync(rPoints[i], rPoints[i].Z);
|
|
isSuccess= await robot.CalibMotionAsync(rPoints[i], rPoints[i].Z);
|
|
|
- if (isSuccess)
|
|
|
|
|
|
|
+ if (!isSuccess)
|
|
|
{
|
|
{
|
|
|
return (false, null, null, null);
|
|
return (false, null, null, null);
|
|
|
}
|
|
}
|
|
@@ -1349,7 +1349,7 @@ namespace TeamAAS_VP.Services
|
|
|
{
|
|
{
|
|
|
//移动机器人至i
|
|
//移动机器人至i
|
|
|
isSuccess= await robot.CalibMotionAsync(rPoints[i], null);
|
|
isSuccess= await robot.CalibMotionAsync(rPoints[i], null);
|
|
|
- if (isSuccess)
|
|
|
|
|
|
|
+ if (!isSuccess)
|
|
|
{
|
|
{
|
|
|
return (false, null, null, null);
|
|
return (false, null, null, null);
|
|
|
}
|
|
}
|
|
@@ -1376,7 +1376,7 @@ namespace TeamAAS_VP.Services
|
|
|
{
|
|
{
|
|
|
//移动机器人至待机位置
|
|
//移动机器人至待机位置
|
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.HomePoint, null);
|
|
isSuccess= await robot.CalibMotionAsync(calibrationInfo.HomePoint, null);
|
|
|
- if (isSuccess)
|
|
|
|
|
|
|
+ if (!isSuccess)
|
|
|
{
|
|
{
|
|
|
return (false, null, null, null);
|
|
return (false, null, null, null);
|
|
|
}
|
|
}
|
|
@@ -1896,7 +1896,7 @@ namespace TeamAAS_VP.Services
|
|
|
|
|
|
|
|
// 2.移动机器人至中心位置
|
|
// 2.移动机器人至中心位置
|
|
|
bool isSuccess = await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
|
|
bool isSuccess = await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
|
|
|
- if (isSuccess)
|
|
|
|
|
|
|
+ if (!isSuccess)
|
|
|
{
|
|
{
|
|
|
return (false, null, null);
|
|
return (false, null, null);
|
|
|
}
|
|
}
|