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

[Bug] Material not showing after upgrade from Iron to Jazzy #1220

Open
firesurfer opened this issue Jun 24, 2024 · 4 comments
Open

[Bug] Material not showing after upgrade from Iron to Jazzy #1220

firesurfer opened this issue Jun 24, 2024 · 4 comments

Comments

@firesurfer
Copy link

firesurfer commented Jun 24, 2024

Description

We currently try to upgrade our stack from iron to jazzy. We mostly use stl files in our model. With rviz in iron all meshes + materials are shown correctly. In jazzy all meshes based on a stl file are shown in the same light gray (see screenshot)

image

Additionally rviz produces (Only in case the model is loaded via the moveit planning scene) and endless stream of such errors:

[rviz2-17] [ERROR] [1719212675.170806883] [rviz2]: Can't assign material Shape86Material to the ManualObject MeshShape_ManualObject7 because this Material does not exist in group General. Have you forgotten to define it in a .material script?
[rviz2-17] [ERROR] [1719212675.171172805] [rviz2]: Can't assign material Shape88Material to the ManualObject MeshShape_ManualObject8 because this Material does not exist in group General. Have you forgotten to define it in a .material script?
[rviz2-17] [ERROR] [1719212675.171424283] [rviz2]: Can't assign material Shape90Material to the ManualObject MeshShape_ManualObject9 because this Material does not exist in group General. Have you forgotten to define it in a .material script?
[rviz2-17] [ERROR] [1719212675.171593158] [rviz2]: Can't assign material Shape92Material to the ManualObject MeshShape_ManualObject10 because this Material does not exist in group General. Have you forgotten to define it in a .material script?

It is actually this stream of endless errors that makes it unusable.

System

  • jazzy binary install
  • rviz version: 14.1.1

Additional information

For most of these meshes a material is set in the <visual> block such as <material name="steel_blue"/>

EDIT:

I just ran rviz with '-l'.

Ogre does complain about:

08:17:31: Warning: Material file:///file_path_to_stl_file.stlMaterial0 was requested with isManual=true, but this is not applicable for materials; the flag has been reset to false

@chama1176
Copy link
Contributor

I am getting the same error in my environment.
The material is applied to cylinders, etc., but not to stl.

This was referenced Jul 12, 2024
ahcorde added a commit that referenced this issue Jul 17, 2024
Signed-off-by: chama1176 <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
mergify bot pushed a commit that referenced this issue Jul 19, 2024
Signed-off-by: chama1176 <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 85dfbef)
mergify bot pushed a commit that referenced this issue Jul 19, 2024
Signed-off-by: chama1176 <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 85dfbef)
mergify bot pushed a commit that referenced this issue Jul 19, 2024
Signed-off-by: chama1176 <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 85dfbef)
ahcorde pushed a commit that referenced this issue Jul 19, 2024
Signed-off-by: chama1176 <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 85dfbef)

Co-authored-by: chama1176 <[email protected]>
@manadaniel
Copy link

manadaniel commented Jul 25, 2024

As previously mentioned in the thread of issue #1236 I keep getting endless rviz2 logging errors even after the latest update to version 14.1.3 of rviz2 which included a fix for issue #1236, but not for me. In my case the objects producing the continuous rviz2 log errors are collision objects that were added using moveit2's applyCollisionObject methods and they include .stl meshes (note: the objects are not defined in a URDF file).

The typical error message is the following, with the numbers between "Shape" and "Material" as well as after "Object" being kind of an computed counter increasing over time:

[rviz2-3] [ERROR] [1721749218.192680538] [rviz2]: Can't assign material Shape18906Material to the ManualObject MeshShape_ManualObject17738 because this Material does not exist in group General. Have you forgotten to define it in a .material script?

I am guessing here, but it seems that it kind of generates materials (like "Shape18906Material" from log output cited above) counting upwards the whole time and it looks for this material in some group "General" which I am not familiar with.

My current setup is

  • Ubuntu 24.04
  • ROS2 Jazzy Debian Packages installed via apt
  • Currently installed rviz2 version: ros-jazzy-rviz2/noble,now 14.1.3-1noble.20240719.202006 amd64 [installed,automatic]

Any ideas?

@mrjogo
Copy link

mrjogo commented Sep 25, 2024

I also got the same errors with rviz2 installed from apt (14.1.5), and I subsequently tried building 14.0.0 and 14.2.0 from source (as an overlay, without uninstalling the apt package), and got the same errors.

I'm only using the MotionPlanning and Motion Planning Tasks plugins, so not sure if it's somehow related to those.

@DaniGarciaLopez
Copy link

Same here! Ubuntu 24.04 with Jazzy from Debian packages and rviz2 14.1.5 from binaries

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

5 participants