public void RosValidate() { if (GroupName is null) { throw new System.NullReferenceException(nameof(GroupName)); } if (AttachedObjectName is null) { throw new System.NullReferenceException(nameof(AttachedObjectName)); } if (PlaceLocations is null) { throw new System.NullReferenceException(nameof(PlaceLocations)); } for (int i = 0; i < PlaceLocations.Length; i++) { if (PlaceLocations[i] is null) { throw new System.NullReferenceException($"{nameof(PlaceLocations)}[{i}]"); } PlaceLocations[i].RosValidate(); } if (SupportSurfaceName is null) { throw new System.NullReferenceException(nameof(SupportSurfaceName)); } if (PathConstraints is null) { throw new System.NullReferenceException(nameof(PathConstraints)); } PathConstraints.RosValidate(); if (PlannerId is null) { throw new System.NullReferenceException(nameof(PlannerId)); } if (AllowedTouchObjects is null) { throw new System.NullReferenceException(nameof(AllowedTouchObjects)); } for (int i = 0; i < AllowedTouchObjects.Length; i++) { if (AllowedTouchObjects[i] is null) { throw new System.NullReferenceException($"{nameof(AllowedTouchObjects)}[{i}]"); } } if (PlanningOptions is null) { throw new System.NullReferenceException(nameof(PlanningOptions)); } PlanningOptions.RosValidate(); }
public void RosValidate() { if (Request is null) { throw new System.NullReferenceException(nameof(Request)); } Request.RosValidate(); if (PlanningOptions is null) { throw new System.NullReferenceException(nameof(PlanningOptions)); } PlanningOptions.RosValidate(); }
public void RosValidate() { if (TargetName is null) { throw new System.NullReferenceException(nameof(TargetName)); } if (GroupName is null) { throw new System.NullReferenceException(nameof(GroupName)); } if (EndEffector is null) { throw new System.NullReferenceException(nameof(EndEffector)); } if (PossibleGrasps is null) { throw new System.NullReferenceException(nameof(PossibleGrasps)); } for (int i = 0; i < PossibleGrasps.Length; i++) { if (PossibleGrasps[i] is null) { throw new System.NullReferenceException($"{nameof(PossibleGrasps)}[{i}]"); } PossibleGrasps[i].RosValidate(); } if (SupportSurfaceName is null) { throw new System.NullReferenceException(nameof(SupportSurfaceName)); } if (AttachedObjectTouchLinks is null) { throw new System.NullReferenceException(nameof(AttachedObjectTouchLinks)); } for (int i = 0; i < AttachedObjectTouchLinks.Length; i++) { if (AttachedObjectTouchLinks[i] is null) { throw new System.NullReferenceException($"{nameof(AttachedObjectTouchLinks)}[{i}]"); } } if (PathConstraints is null) { throw new System.NullReferenceException(nameof(PathConstraints)); } PathConstraints.RosValidate(); if (PlannerId is null) { throw new System.NullReferenceException(nameof(PlannerId)); } if (AllowedTouchObjects is null) { throw new System.NullReferenceException(nameof(AllowedTouchObjects)); } for (int i = 0; i < AllowedTouchObjects.Length; i++) { if (AllowedTouchObjects[i] is null) { throw new System.NullReferenceException($"{nameof(AllowedTouchObjects)}[{i}]"); } } if (PlanningOptions is null) { throw new System.NullReferenceException(nameof(PlanningOptions)); } PlanningOptions.RosValidate(); }