/// <summary> Constructor with buffer. </summary> internal PlanningSceneWorld(ref Buffer b) { CollisionObjects = b.DeserializeArray <CollisionObject>(); for (int i = 0; i < CollisionObjects.Length; i++) { CollisionObjects[i] = new CollisionObject(ref b); } Octomap = new OctomapMsgs.OctomapWithPose(ref b); }
/// <summary> Explicit constructor. </summary> public PlanningSceneWorld(CollisionObject[] CollisionObjects, OctomapMsgs.OctomapWithPose Octomap) { this.CollisionObjects = CollisionObjects; this.Octomap = Octomap; }
/// <summary> Constructor for empty message. </summary> public PlanningSceneWorld() { CollisionObjects = System.Array.Empty <CollisionObject>(); Octomap = new OctomapMsgs.OctomapWithPose(); }