Exemple #1
0
 /// <summary> Constructor for empty message. </summary>
 public RecognizedObject()
 {
     Type             = new ObjectRecognitionMsgs.ObjectType();
     PointClouds      = System.Array.Empty <SensorMsgs.PointCloud2>();
     BoundingMesh     = new ShapeMsgs.Mesh();
     BoundingContours = System.Array.Empty <GeometryMsgs.Point>();
     Pose             = new GeometryMsgs.PoseWithCovarianceStamped();
 }
Exemple #2
0
 /// <summary> Constructor with buffer. </summary>
 internal BoundingVolume(ref Buffer b)
 {
     Primitives = b.DeserializeArray <ShapeMsgs.SolidPrimitive>();
     for (int i = 0; i < Primitives.Length; i++)
     {
         Primitives[i] = new ShapeMsgs.SolidPrimitive(ref b);
     }
     PrimitivePoses = b.DeserializeStructArray <GeometryMsgs.Pose>();
     Meshes         = b.DeserializeArray <ShapeMsgs.Mesh>();
     for (int i = 0; i < Meshes.Length; i++)
     {
         Meshes[i] = new ShapeMsgs.Mesh(ref b);
     }
     MeshPoses = b.DeserializeStructArray <GeometryMsgs.Pose>();
 }
Exemple #3
0
 /// <summary> Explicit constructor. </summary>
 public ObjectInformation(string Name, ShapeMsgs.Mesh GroundTruthMesh, SensorMsgs.PointCloud2 GroundTruthPointCloud)
 {
     this.Name                  = Name;
     this.GroundTruthMesh       = GroundTruthMesh;
     this.GroundTruthPointCloud = GroundTruthPointCloud;
 }
Exemple #4
0
 /// <summary> Constructor with buffer. </summary>
 internal ObjectInformation(ref Buffer b)
 {
     Name                  = b.DeserializeString();
     GroundTruthMesh       = new ShapeMsgs.Mesh(ref b);
     GroundTruthPointCloud = new SensorMsgs.PointCloud2(ref b);
 }
Exemple #5
0
 /// <summary> Constructor for empty message. </summary>
 public ObjectInformation()
 {
     Name                  = string.Empty;
     GroundTruthMesh       = new ShapeMsgs.Mesh();
     GroundTruthPointCloud = new SensorMsgs.PointCloud2();
 }