Skip to content

Fix urdf assemply for copying mtl file #184

Merged
yuecideng merged 1 commit intomainfrom
yueci/fix-obj
Mar 16, 2026
Merged

Fix urdf assemply for copying mtl file #184
yuecideng merged 1 commit intomainfrom
yueci/fix-obj

Conversation

@yuecideng
Copy link
Contributor

@yuecideng yuecideng commented Mar 16, 2026

Description

Fix the issue of mtl file copying when performing urdf merging if the visual mesh is obj format

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have run the black . command to format the code base.
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Dependencies have been updated, if applicable.

Copilot AI review requested due to automatic review settings March 16, 2026 03:17
@yuecideng yuecideng added bug Something isn't working toolkit Stand along tools collection. labels Mar 16, 2026
@yuecideng yuecideng merged commit 8a7bd6e into main Mar 16, 2026
6 checks passed
@yuecideng yuecideng deleted the yueci/fix-obj branch March 16, 2026 03:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes OBJ material (.mtl) file copying during URDF mesh assembly/merging when the mesh reference includes directory components, ensuring the resolver looks for the .mtl alongside the resolved OBJ on disk.

Changes:

  • Compute the OBJ’s .mtl filename from the OBJ basename (not the full referenced path) so dependency lookup/copy works correctly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

bug Something isn't working toolkit Stand along tools collection.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants