Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include the mtl files in flexiv_description #35

Closed
TomCC7 opened this issue Jul 10, 2024 · 4 comments
Closed

include the mtl files in flexiv_description #35

TomCC7 opened this issue Jul 10, 2024 · 4 comments

Comments

@TomCC7
Copy link
Contributor

TomCC7 commented Jul 10, 2024

Hi, when I load the .obj files in flexiv_description I might receive a warning complaining that the .obj file referenced a .mtl file but it can't find the file. I know that the .mtl file is only for defining materials, but it would be nice if you could also include that. Here's an example of the warning message:

Meshcat: Failed to load texture. 
install/flexiv_description/share/flexiv_description/meshes/rizon4s/visual/link7.obj references link7.mtl, 
but Meshcat could not open filename "/install/flexiv_description/share/flexiv_description/meshes/rizon4s/visual/link7.mtl
@willnil
Copy link

willnil commented Jul 11, 2024

Hi @TomCC7

you can refer to the URDF. The material is defined in the URDF xacro file and https://github.com/flexivrobotics/flexiv_ros2/blob/humble/flexiv_description/urdf/flexiv_arm.materials.xacro but not using the mtl file.

@TomCC7
Copy link
Contributor Author

TomCC7 commented Jul 11, 2024

Hi, thanks for replying, I think the problem here is that the obj file referenced mtl file, which caused the parser to complain. If you don't want to work with mtl files you should also remove reference to that. I shared my modifications in #36 in case you need that. :)

@munseng-flexiv
Copy link
Collaborator

Hi @TomCC7

I see the parser you used is Meshcat and not using the ROS launch file. The package works well in ROS Rviz and it does not complain any errors. If you require the mtl files you can get it in the version v0.6.1

@munseng-flexiv
Copy link
Collaborator

MTL references are removed in the OBJ files #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants