本文整理汇总了Java中com.google.atap.tangoservice.TangoPoseData.POSE_INVALID属性的典型用法代码示例。如果您正苦于以下问题:Java TangoPoseData.POSE_INVALID属性的具体用法?Java TangoPoseData.POSE_INVALID怎么用?Java TangoPoseData.POSE_INVALID使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.google.atap.tangoservice.TangoPoseData
的用法示例。
在下文中一共展示了TangoPoseData.POSE_INVALID属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getStatusString
/**
* Get the status of the Pose as a string.
*
* @param pose Pose from which status string is constructed.
* @return
*/
public static String getStatusString(TangoPoseData pose) {
String poseStatus;
switch (pose.statusCode) {
case TangoPoseData.POSE_UNKNOWN:
poseStatus = "unknown";
break;
case TangoPoseData.POSE_INVALID:
poseStatus = "invalid";
break;
case TangoPoseData.POSE_INITIALIZING:
poseStatus = "initializing";
break;
case TangoPoseData.POSE_VALID:
poseStatus = "valid";
break;
default:
poseStatus = "unknown";
}
return poseStatus;
}
示例2: getStatusString
/**
* Get the status of the Pose as a string.
* @param pose: Pose from which status string is constructed.
* @return
*/
public static String getStatusString(TangoPoseData pose){
String poseStatus = "unknown";
switch (pose.statusCode){
case TangoPoseData.POSE_UNKNOWN:
poseStatus = "unknown";
break;
case TangoPoseData.POSE_INVALID:
poseStatus = "invalid";
break;
case TangoPoseData.POSE_INITIALIZING:
poseStatus = "initializing";
break;
case TangoPoseData.POSE_VALID:
poseStatus = "valid";
break;
default:
poseStatus = "unknown";
}
return poseStatus;
}
示例3: getPoseStatus
private String getPoseStatus(TangoPoseData pose) {
switch (pose.statusCode) {
case TangoPoseData.POSE_INITIALIZING:
return getString(R.string.pose_initializing);
case TangoPoseData.POSE_INVALID:
return getString(R.string.pose_invalid);
case TangoPoseData.POSE_VALID:
return getString(R.string.pose_valid);
default:
return getString(R.string.pose_unknown);
}
}
示例4: getPoseStatus
private String getPoseStatus(TangoPoseData pose) {
switch (pose.statusCode) {
case TangoPoseData.POSE_INITIALIZING:
return getString(R.string.pose_initializing);
case TangoPoseData.POSE_INVALID:
return getString(R.string.pose_invalid);
case TangoPoseData.POSE_VALID:
return getString(R.string.pose_valid);
default:
return getString(R.string.pose_unknown);
}
}