From 98aa619063ea75c09dbf002539b1478ccb8959fa Mon Sep 17 00:00:00 2001 From: Jino Park Date: Wed, 5 Feb 2020 16:46:04 +0900 Subject: [PATCH] Fix typo apriltag_pose_destory -> apriltag_pose_destroy --- examples/pose-apriltag/rs-pose-apriltag.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pose-apriltag/rs-pose-apriltag.cpp b/examples/pose-apriltag/rs-pose-apriltag.cpp index 92c3458f20..8458775b78 100644 --- a/examples/pose-apriltag/rs-pose-apriltag.cpp +++ b/examples/pose-apriltag/rs-pose-apriltag.cpp @@ -103,7 +103,7 @@ class apriltag_manager { int size() const { return pose_in_camera.size(); } }; - static void apriltag_pose_destory(apriltag_pose_t* p){ matd_destroy(p->R); matd_destroy(p->t); delete p;} + static void apriltag_pose_destroy(apriltag_pose_t* p){ matd_destroy(p->R); matd_destroy(p->t); delete p;} apriltag_array_t detect(unsigned char* gray, const rs2_pose* camera_pose) const { image_u8_t img{ intr.width, intr.height, intr.width, gray}; @@ -116,7 +116,7 @@ class apriltag_manager { auto info_ = info; for(int t=0, num_of_tags=(int)tags.size(); t(new apriltag_pose_t(), apriltag_pose_destory); + tags.pose_raw[t] = std::shared_ptr(new apriltag_pose_t(), apriltag_pose_destroy); undistort(*(info_.det = tags.get(t)), intr); //recompute tag corners on an undistorted image focal length = 1 //estimate_tag_pose(&info_, tags.pose_raw[t].get()); //(alternative) estimate tag pose in camera coordinate