-
Notifications
You must be signed in to change notification settings - Fork 223
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
Fix: issue #1220. #1236
Fix: issue #1220. #1236
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mind to retarget the PR to rolling
? then I can backport this to the other distros.
Hi @chama1176 One question regarding the PR. Does it actually restore the before behavior -> In case a material is set in the URDF the material in the URDF is used, otherwise use the default material? |
@ahcorde |
@firesurfer |
Thanks for the fix! Unfortunately I am still getting the following errors which makes my log kind of unusable (constant log output).
With Iron and Humble there weren't any of these errors - at least not shown in the log. Despite the error messages, the object meshes are drawn correctly (shape from .stl and color as defined in applyCollisionObject using moveit2). Any help is appreciated! |
@manadaniel In my environment(Jazzy) the problem is fixed in 14.1.3 (c9f2005). |
@chama1176 sorry for not providing the details. Here they are:
So the version installed is 14.1.3 which includes the before mentioned fix. Maybe it actually does fix your problem @chama1176 (not showing the material). My case might be related but slightly different: the objects producing the continuous rviz2 log errors are not defined in a URDF but added as collision objects using moveit2 packages. And they continue to produce the logging errors with the updated rviz2 version 14.1.3 . 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. Any ideas? |
@manadaniel It sounds like the situation is similar to the original Issue #1220 (which I thought was the same as I fixed), but I don't have a solution that I can offer right away 🙇 |
Fix: issue #1220.
The stl loader has been changed in PR to refer to that of ROS1.
However, the material setting part of stl is missing, which is causing issue #1220 where colors are not displayed correctly.
Therefore, I created a modified PR by referring to the ROS1 code
https://github.com/ros-visualization/rviz/blob/fdcf656aa5d9816bf7c06a533f8224ec28bd6e0f/src/rviz/mesh_loader.cpp#L445-L456