Ejemplo n.º 1
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);
     }
   }
 }
Ejemplo n.º 2
0
 /*@Nullable*/
 public static PoseType getPose(/*@Nullable*/ CRCLStatusType stat) {
   if (stat != null) {
     PoseStatusType poseStatus = stat.getPoseStatus();
     if (null != poseStatus) {
       return poseStatus.getPose();
     }
   }
   return null;
 }