Skip to content

Commit

Permalink
use cv::drawFrameAxes instead of aruco::drawAxis
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Apr 20, 2024
1 parent 55136ce commit 501b839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aruco_detect/src/aruco_detect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ void FiducialsNode::poseEstimateCallback(const FiducialArrayConstPtr & msg)
reprojectionError);

for (size_t i=0; i<ids.size(); i++) {
aruco::drawAxis(cv_ptr->image, cameraMatrix, distortionCoeffs,
rvecs[i], tvecs[i], (float)fiducial_len);
cv::drawFrameAxes(cv_ptr->image, cameraMatrix, distortionCoeffs,
rvecs[i], tvecs[i], (float)fiducial_len);
if(verbose){
ROS_INFO("Detected id %d T %.2f %.2f %.2f R %.2f %.2f %.2f", ids[i],
tvecs[i][0], tvecs[i][1], tvecs[i][2],
Expand Down

0 comments on commit 501b839

Please sign in to comment.