public void RosValidate() { if (Name is null) { throw new System.NullReferenceException(nameof(Name)); } if (RobotState is null) { throw new System.NullReferenceException(nameof(RobotState)); } RobotState.RosValidate(); if (RobotModelName is null) { throw new System.NullReferenceException(nameof(RobotModelName)); } if (FixedFrameTransforms is null) { throw new System.NullReferenceException(nameof(FixedFrameTransforms)); } if (AllowedCollisionMatrix is null) { throw new System.NullReferenceException(nameof(AllowedCollisionMatrix)); } AllowedCollisionMatrix.RosValidate(); if (LinkPadding is null) { throw new System.NullReferenceException(nameof(LinkPadding)); } for (int i = 0; i < LinkPadding.Length; i++) { if (LinkPadding[i] is null) { throw new System.NullReferenceException($"{nameof(LinkPadding)}[{i}]"); } LinkPadding[i].RosValidate(); } if (LinkScale is null) { throw new System.NullReferenceException(nameof(LinkScale)); } for (int i = 0; i < LinkScale.Length; i++) { if (LinkScale[i] is null) { throw new System.NullReferenceException($"{nameof(LinkScale)}[{i}]"); } LinkScale[i].RosValidate(); } if (ObjectColors is null) { throw new System.NullReferenceException(nameof(ObjectColors)); } for (int i = 0; i < ObjectColors.Length; i++) { if (ObjectColors[i] is null) { throw new System.NullReferenceException($"{nameof(ObjectColors)}[{i}]"); } ObjectColors[i].RosValidate(); } if (World is null) { throw new System.NullReferenceException(nameof(World)); } World.RosValidate(); }