Accounting for distortion in ar_track_alvar
Hello,
I am trying to use ar_track_alvar to get pose estimation of april tags. As noted here, there is an issue with the package when it comes for accounting for distortion!
Here we can see that the issue remains, as the Distort
and UnDistort
classes are still commented out. I am also noticing some systematic errors in the poses that seem consistent with the hypothesis that image rectification is not correctly taken into account.
Has anyone found a way to hack around this?
I have tried to naively rectify the image beforehand, as well as to simply uncomment the Distort
and Undistort
classes in the ar_track_alvar code, but neither seemed to work well.
Thanks!
I'm not sure, and I'm not really into computer vision topics, but isn't the idea that you feed
ar_track_alvar
already undistorted images? Nodes/nodelets inimage_proc
were created for this purpose.The documentation originally suggests that you have to subscribe to the un-rectified image topic :
camera_image (string) -- The name of the topic that provides camera frames for detecting the AR tags. This can be mono or color, but should be an UNrectified image, since rectification takes place in this package
. That said, I did try what you suggest withimage_proc
, but it didn't seem to get me better results either so I'm still trying to figure this out!So just making sure: you configured everything to use the rectified image and used the node(lets) in
image_proc
to rectify the image, correct?I used
image_proc
to rectify the image, then input the rectified image toar_track_alvar
. I didn't change any config onar_track_alvar
, as I don't see any arguments that allow me to specify whether I want to use a rectified image or not. :/