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]
The below function fails to look up the resources for apriltags.
duckietown-world/src/duckietown_world/world_duckietown/map_loading.py
Line 327 in 4e72509
Because tags_db.py tries to find the resource with this name:
duckietown-world/src/duckietown_world/world_duckietown/tags_db.py
Line 23 in 4e72509
while the
get_texture_filefunction on the top always tries to append .jpg or .png for the lookup.Following is a way to fix it: