Example #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;
 }
Example #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);
     }
   }
 }