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

Could not load resource [%s]: Unable to open file "%s" #1819

Open
PhilVince96 opened this issue Apr 4, 2024 · 3 comments
Open

Could not load resource [%s]: Unable to open file "%s" #1819

PhilVince96 opened this issue Apr 4, 2024 · 3 comments

Comments

@PhilVince96
Copy link

I really did search every forum possible for this problem and I am confident, that there is every library installed that is needed and that the path is correct (I have already tried every possible path).

When I load the robot model into rviz it throws this error in the output:

Could not load resource [package://wam_description/urdf/meshes/wam_stand.stl]: Unable to open file "package://wam_description/urdf/meshes/wam_stand.stl".

for multiple files. I did try absolute paths, the file:/// option, $(find ...), etc. always the same output.

rat_console output:

Node: /wam/rviz
Time: 17:45:16.118340000 (2024-04-04)
Severity: Error
Published Topics: /clicked_point, /initialpose, /move_base_simple/goal, /rosout

Could not load resource [package://wam_description/urdf/meshes/wam_stand.stl]: Unable to open file "package://wam_description/urdf/meshes/wam_stand.stl".

Location:
/Users/fischert/mambaforge/envs/devenv/conda-bld/ros-noetic-rviz-0_1706257461249/work/ros-noetic-rviz/src/work/src/rviz/mesh_loader.cpp:loadMeshFromResource:658

The ROS_ERROR is thrown in row 658 of mesh_loader.cpp in the loadMeshFromResource function.
I do not get why the "resource_path" fails the assertions for the .stl extension and my only guess is that the os is the problem, because I know that this setup works on ubuntu. The .stl is also correct, I checked that with rosin xacro.

Your environment

  • OS Version: macOS 14.4.1 23E224 arm64
  • ROS Distro: Noetic
  • ROS Version: 1.16.0
  • RViz, Qt, OGRE, OpenGl version as printed by rviz:
[ INFO] [1712245369.622606000]: rviz version 1.14.20
[ INFO] [1712245369.622652000]: compiled against Qt version 5.15.8
[ INFO] [1712245369.622656000]: compiled against OGRE version 1.10.12 (Xalafu)
[ INFO] [1712245369.635788000]: Forcing OpenGl version 0.
[ INFO] [1712245370.037545000]: Stereo is NOT SUPPORTED
[ INFO] [1712245370.037596000]: OpenGL device: Apple M1
[ INFO] [1712245370.037602000]: OpenGl version: 2.1 (GLSL 1.2).
  • System locale, i.e. the output of echo "$LANG $LC_NUMERIC": en_US.UTF-8
    Before reporting a rendering issue, try running RViz with LANG=C rviz! ✅ did not change the behaviour
@rhaschke
Copy link
Contributor

rhaschke commented Apr 4, 2024

My best guess is to check the version of assimp used. Ensure that you build against the same version as used in Ubuntu.

@PhilVince96
Copy link
Author

Which build do you mean exactly? Because I use robostack on the macOS as well as on the Ubuntu system. But on the latter assimp is version 5.2.5 and on the macOS system it is version 5.3.1. But with assimp version 5.2.5 on the macOS system I still get the exact same error.

@rhaschke
Copy link
Contributor

rhaschke commented Apr 4, 2024

If switching the version of assimp yields the same result, I don't have any further ideas. Sorry.

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

2 participants