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

map_loading could not get correct resource for AprilTags #45

Open
jasonhu5 opened this issue Nov 3, 2020 · 0 comments
Open

map_loading could not get correct resource for AprilTags #45

jasonhu5 opened this issue Nov 3, 2020 · 0 comments

Comments

@jasonhu5
Copy link
Contributor

jasonhu5 commented Nov 3, 2020

The below function fails to look up the resources for apriltags.

def get_texture_file(tex_name: str) -> str:

Because tags_db.py tries to find the resource with this name:

texture = f"tag{f}_{tag_id:05d}.png"

while the get_texture_file function on the top always tries to append .jpg or .png for the lookup.

Following is a way to fix it:

if (tex_name in resources):
    return resources[tex_name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant