Skip to content

map_loading could not get correct resource for AprilTags #45

@jasonhu5

Description

@jasonhu5

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions