Skip to content

Issue with using Path objects #35

@StoneT2000

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.

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