Accumulated error during mapping

48 views
Skip to first unread message

Mahroo

unread,
Jan 20, 2023, 9:42:48 AM1/20/23
to tagslam
Dear Bernd, 
I'm running the tagslam to create a map of the environment (finding the pose of other tags given one known pose, only the pose of tag_5 is known). I ran the sync_and_detect first on the bag file, it was able to detect the apriltags. 
sync_and_detect.png
Then, I ran the tagslam on the output bag file of the sync_and_detect and I used rviz to visualize it, as shown in the figure below, the tags have the correct orientation but the poses are such that they have an accumulated error.
rviz1.png rviz2.png
The first right tag is tag_5. 
I was wondering what could be the potential problem here and if there is a solution to fix that. The tagslam.yaml file is also attached. 

Best, 
Mahroo

tagslam.yaml

Bernd Pfrommer

unread,
Jan 20, 2023, 10:33:38 AM1/20/23
to Mahroo, tagslam
This looks very much like a bad intrinsic camera calibration file. Please post your cameras.yaml and say how you got the parameters for that.

--
You received this message because you are subscribed to the Google Groups "tagslam" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tagslam+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tagslam/ef0b5df0-2105-464a-890a-beff962767cen%40googlegroups.com.

Mahroo

unread,
Jan 23, 2023, 11:28:45 AM1/23/23
to tagslam
I used the openCV, having a checkboard to find calibration parameters. I attached the camera.yaml file.
camera.yaml

Bernd Pfrommer

unread,
Jan 23, 2023, 2:46:15 PM1/23/23
to tagslam
Usually the image center is close to 1/2 the width and 1/2 the height of the sensor (in pixels). In your case that should be (820, 616) but you have (587, 818). Can you check that
this line:
intrinsics: [1260.68429,1259.495486,587.13645838,817.21166]
is correct?
Could it be that the last two elements (cx, cy) should be switched around?


Reply all
Reply to author
Forward
0 new messages