示例#1
0
 /*@Nullable*/
 public static PoseType getPose(/*@Nullable*/ CRCLStatusType stat) {
   if (stat != null) {
     PoseStatusType poseStatus = stat.getPoseStatus();
     if (null != poseStatus) {
       return poseStatus.getPose();
     }
   }
   return null;
 }
示例#2
0
 public static void setPose(/*@Nullable*/ CRCLStatusType stat, PoseType pose) {
   if (null != stat) {
     PoseStatusType poseStatus = stat.getPoseStatus();
     if (null != poseStatus) {
       poseStatus.setPose(pose);
     } else {
       PoseStatusType newPoseStatus = new PoseStatusType();
       newPoseStatus.setPose(pose);
       stat.setPoseStatus(newPoseStatus);
     }
   }
 }