AprilRobotics / apriltag

AprilTag is a visual fiducial system popular for robotics research.
https://april.eecs.umich.edu/software/apriltag
Other
1.56k stars 535 forks source link

Discrepancy Between Generated Families and Built-In Families #261

Closed bhjelstrom closed 1 year ago

bhjelstrom commented 1 year ago

The included "classic" 16h5 family includes 30 tags.

When I generate a classic 16h5 family using apriltag-generation and "java -cp april.jar april.tag.TagFamilyGenerator classic_8 5", I get a family with 25 tags (and the family is in fact named 16h5).

When I generate a standard 41h12 family with java -cp april.jar april.tag.TagFamilyGenerator standard_9 12, the generated "TagStandard41h12" has 1721 distinct tags. The included TagStandard41h12 family has 2115 distinct tags.

Trying to understand the cause of the discrepancy. Thanks.

mkrogius commented 1 year ago

This happens because you are probably using a different version of Java than was used originally, which has a different random number generator

On Tue, Oct 4, 2022, 23:10 hjelstromboli @.***> wrote:

The included "classic" 16h5 family includes 30 tags.

When I generate a classic 16h5 family using apriltag-generation and "java -cp april.jar april.tag.TagFamilyGenerator classic_8 5", I get a family with 25 tags (and the family is in fact named 16h5).

When I generate a standard 41h12 family with java -cp april.jar april.tag.TagFamilyGenerator standard_9 12, the generated "TagStandard41h12" has 1721 distinct tags. The included TagStandard41h12 family has 2115 distinct tags.

Trying to understand the cause of the discrepancy. Thanks.

— Reply to this email directly, view it on GitHub https://github.com/AprilRobotics/apriltag/issues/261, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABF4RZL6PFN5OTWS6M5UIY3WBULVRANCNFSM6AAAAAAQ5HOVEE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

christian-rauch commented 1 year ago

@bhjelstrom If you are still facing issues, I suggest reporting them to https://github.com/AprilRobotics/apriltag-generation where they can be better tracked.