Skip to content

Issue with using Path objects #35

Description

@StoneT2000

I mistakenly passed a Path object as a filepath instead of a string. Took me a while to figure out that was the bug since this resulted in a stacktrace in the trimesh library trying to load something it didn't know how to handle.

URDF.load(Path("path" / "robot.urdf")) # doesn't work!
URDF.load("path/robot.urdf") # ok!

One suggestion to avoid users getting this error would be to check if a user sends something isn't a string object / is a Path object.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions