Skip to content

Commit

Permalink
rs-pose-apriltag: format spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
honpong committed Jul 9, 2019
1 parent 6322932 commit 06e091b
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 @@ -109,14 +109,14 @@ class apriltag_manager {
image_u8_t img{ intr.width, intr.height, intr.width, gray};

apriltag_array_t tags;
tags.det = std::shared_ptr<zarray_t>(apriltag_detector_detect(td, &img),apriltag_detections_destroy);
tags.det = std::shared_ptr<zarray_t>(apriltag_detector_detect(td, &img), apriltag_detections_destroy);
tags.pose_in_camera.resize(zarray_size(tags.det.get()));
tags.pose_raw.resize(tags.size());

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_destory);

undistort(*(info_.det = tags.get(t)), intr);
estimate_tag_pose(&info_, tags.pose_raw[t].get());
Expand Down

0 comments on commit 06e091b

Please sign in to comment.