Esempio n. 1
0
 public void RosValidate()
 {
     if (GroupName is null)
     {
         throw new System.NullReferenceException(nameof(GroupName));
     }
     if (RobotState is null)
     {
         throw new System.NullReferenceException(nameof(RobotState));
     }
     RobotState.RosValidate();
     if (Constraints is null)
     {
         throw new System.NullReferenceException(nameof(Constraints));
     }
     Constraints.RosValidate();
     if (IkLinkName is null)
     {
         throw new System.NullReferenceException(nameof(IkLinkName));
     }
     if (PoseStamped is null)
     {
         throw new System.NullReferenceException(nameof(PoseStamped));
     }
     PoseStamped.RosValidate();
     if (IkLinkNames is null)
     {
         throw new System.NullReferenceException(nameof(IkLinkNames));
     }
     for (int i = 0; i < IkLinkNames.Length; i++)
     {
         if (IkLinkNames[i] is null)
         {
             throw new System.NullReferenceException($"{nameof(IkLinkNames)}[{i}]");
         }
     }
     if (PoseStampedVector is null)
     {
         throw new System.NullReferenceException(nameof(PoseStampedVector));
     }
     for (int i = 0; i < PoseStampedVector.Length; i++)
     {
         if (PoseStampedVector[i] is null)
         {
             throw new System.NullReferenceException($"{nameof(PoseStampedVector)}[{i}]");
         }
         PoseStampedVector[i].RosValidate();
     }
 }
Esempio n. 2
0
 public void RosValidate()
 {
     if (ErrorCode is null)
     {
         throw new System.NullReferenceException(nameof(ErrorCode));
     }
     ErrorCode.RosValidate();
     if (TrajectoryStart is null)
     {
         throw new System.NullReferenceException(nameof(TrajectoryStart));
     }
     TrajectoryStart.RosValidate();
     if (PlannedTrajectory is null)
     {
         throw new System.NullReferenceException(nameof(PlannedTrajectory));
     }
     PlannedTrajectory.RosValidate();
     if (ExecutedTrajectory is null)
     {
         throw new System.NullReferenceException(nameof(ExecutedTrajectory));
     }
     ExecutedTrajectory.RosValidate();
 }