示例#1
0
 /// <summary> Constructor for empty message. </summary>
 public Detection2D()
 {
     Results    = System.Array.Empty <ObjectHypothesisWithPose>();
     Bbox       = new BoundingBox2D();
     SourceImg  = new SensorMsgs.Image();
     TrackingId = string.Empty;
 }
示例#2
0
 /// <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);
     }
 }
示例#3
0
 /// <summary> Constructor with buffer. </summary>
 internal MeshTexture(ref Buffer b)
 {
     Uuid         = b.DeserializeString();
     TextureIndex = b.Deserialize <uint>();
     Image        = new SensorMsgs.Image(ref b);
 }
示例#4
0
 /// <summary> Explicit constructor. </summary>
 public MeshTexture(string Uuid, uint TextureIndex, SensorMsgs.Image Image)
 {
     this.Uuid         = Uuid;
     this.TextureIndex = TextureIndex;
     this.Image        = Image;
 }
示例#5
0
 /// <summary> Constructor for empty message. </summary>
 public MeshTexture()
 {
     Uuid  = string.Empty;
     Image = new SensorMsgs.Image();
 }
示例#6
0
 /// <summary> Constructor for empty message. </summary>
 public DisparityImage()
 {
     Image       = new SensorMsgs.Image();
     ValidWindow = new SensorMsgs.RegionOfInterest();
 }
示例#7
0
 /// <summary> Constructor for empty message. </summary>
 public Classification2D()
 {
     Results   = System.Array.Empty <ObjectHypothesis>();
     SourceImg = new SensorMsgs.Image();
 }