Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AT sometimes outputs Error, more than one new minimum found. #30

Open
shardros opened this issue Nov 3, 2021 · 1 comment
Open

AT sometimes outputs Error, more than one new minimum found. #30

shardros opened this issue Nov 3, 2021 · 1 comment
Labels
bug Something isn't working low-impact User code still runs with debugging capability

Comments

@shardros
Copy link
Member

shardros commented Nov 3, 2021

This is caused when AprilTags solution solving isn't able to work something out. It outputs directly to stderr: https://github.com/AprilRobotics/apriltag/blob/04c4ec3fbb9cbbec1344049323d24e752f01bf38/apriltag_pose.c#L441

I would suggest if the robot logging level is above logging.DEBUG then redirecting the stderr of apriltags to null.

Maybe something like this: https://stackoverflow.com/a/52442331/5006710

image

@WillMunns
Copy link
Contributor

This issue doesn't seem to break the code flow, apart from the extraneous log entry (and not detecting markers this time around) the only issue I have is with the apparent severity of the error.

From what I found, this error comes up when Apriltags cant make out the physics due to camera distortion, but I guess the same error might be triggered by having the marker on a non-planar surface (i.e. a piece of paper which isn't mounted to something stiff)

This is low impact, but we should FAQ it.

@shardros shardros added bug Something isn't working low-impact User code still runs with debugging capability labels Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low-impact User code still runs with debugging capability
Projects
None yet
Development

No branches or pull requests

2 participants