Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
apriltag_pose_destory -> apriltag_pose_destroy
  • Loading branch information
pjessesco authored Feb 5, 2020
1 parent 83f952a commit 98aa619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pose-apriltag/rs-pose-apriltag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand All @@ -116,7 +116,7 @@ class apriltag_manager {
auto info_ = info;
for(int t=0, num_of_tags=(int)tags.size(); t<num_of_tags; ++t)
{
tags.pose_raw[t] = std::shared_ptr<apriltag_pose_t>(new apriltag_pose_t(), apriltag_pose_destory);
tags.pose_raw[t] = std::shared_ptr<apriltag_pose_t>(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
Expand Down

0 comments on commit 98aa619

Please sign in to comment.