فهرست منبع

Removed API calls which are different between Humble and Galactic

Signed-off-by: Adam Dabrowski <[email protected]>
Adam Dabrowski 2 سال پیش
والد
کامیت
6e49e90757
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      Project/Gem/Source/ApplePicker/AppleDetectionGroundTruth.cpp

+ 5 - 2
Project/Gem/Source/ApplePicker/AppleDetectionGroundTruth.cpp

@@ -83,8 +83,11 @@ namespace AppleKraken
         vision_msgs::msg::Detection2D detection;
         vision_msgs::msg::Detection2D detection;
         detection.header.frame_id = m_frameId.c_str();
         detection.header.frame_id = m_frameId.c_str();
         detection.id = "Apple";
         detection.id = "Apple";
-        detection.bbox.center.position.x = apple.m_middle.GetX();
-        detection.bbox.center.position.y = apple.m_middle.GetY();
+
+        // TODO - warning, these APIs changed between Humble and Galactic!
+        // In Galactic, center has no position, just x and y. In Humble, it has position.
+        // detection.bbox.center.position.x = apple.m_middle.GetX();
+        // detection.bbox.center.position.y = apple.m_middle.GetY();
         detection.bbox.size_x = apple.m_appleBoundingBox.GetExtents().GetX();
         detection.bbox.size_x = apple.m_appleBoundingBox.GetExtents().GetX();
         detection.bbox.size_y = apple.m_appleBoundingBox.GetExtents().GetY();
         detection.bbox.size_y = apple.m_appleBoundingBox.GetExtents().GetY();
         return detection;
         return detection;