/// <summary> Constructor for empty message. </summary> public Detection2D() { Results = System.Array.Empty <ObjectHypothesisWithPose>(); Bbox = new BoundingBox2D(); SourceImg = new SensorMsgs.Image(); TrackingId = string.Empty; }
/// <summary> Constructor with buffer. </summary> internal TriangleMesh(ref Buffer b) { Triangles = b.DeserializeArray <TriangleIndices>(); for (int i = 0; i < Triangles.Length; i++) { Triangles[i] = new TriangleIndices(ref b); } Vertices = b.DeserializeStructArray <GeometryMsgs.Point>(); VertexNormals = b.DeserializeStructArray <GeometryMsgs.Point>(); VertexColors = b.DeserializeStructArray <StdMsgs.ColorRGBA>(); TriangleColors = b.DeserializeStructArray <StdMsgs.ColorRGBA>(); VertexTextureCoords = b.DeserializeStructArray <GeometryMsgs.Point>(); FaceMaterials = b.DeserializeArray <MeshMsgs.MeshMaterial>(); for (int i = 0; i < FaceMaterials.Length; i++) { FaceMaterials[i] = new MeshMsgs.MeshMaterial(ref b); } Textures = b.DeserializeArray <SensorMsgs.Image>(); for (int i = 0; i < Textures.Length; i++) { Textures[i] = new SensorMsgs.Image(ref b); } Clusters = b.DeserializeArray <MeshMsgs.MeshFaceCluster>(); for (int i = 0; i < Clusters.Length; i++) { Clusters[i] = new MeshMsgs.MeshFaceCluster(ref b); } }
/// <summary> Constructor with buffer. </summary> internal MeshTexture(ref Buffer b) { Uuid = b.DeserializeString(); TextureIndex = b.Deserialize <uint>(); Image = new SensorMsgs.Image(ref b); }
/// <summary> Explicit constructor. </summary> public MeshTexture(string Uuid, uint TextureIndex, SensorMsgs.Image Image) { this.Uuid = Uuid; this.TextureIndex = TextureIndex; this.Image = Image; }
/// <summary> Constructor for empty message. </summary> public MeshTexture() { Uuid = string.Empty; Image = new SensorMsgs.Image(); }
/// <summary> Constructor for empty message. </summary> public DisparityImage() { Image = new SensorMsgs.Image(); ValidWindow = new SensorMsgs.RegionOfInterest(); }
/// <summary> Constructor for empty message. </summary> public Classification2D() { Results = System.Array.Empty <ObjectHypothesis>(); SourceImg = new SensorMsgs.Image(); }