-
Notifications
You must be signed in to change notification settings - Fork 30
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
mesh is always rendered in color white #172
Comments
Hi @proyan, Did you solve this? I think I am facing the same issue (not with all robots) |
Do you have a large scale in the URDF ? |
The used urdf for A1 robot is the default in |
The Collada files have light sources. You have to remove them. for go in robot.visual_model.geometryObjects:
name = robot.viz.getViewerNodeName(go, pinocchio.VISUAL)
if "RemoveLightSources" not in gui.getPropertyNames(name):
continue
gui.removeLightSources(name) |
Where am I supposed to use the above code? I have What is the |
|
So I modified the
Then I built and installed |
I don't see where the viewer is initialized in your code. |
Hi, This works for me, with binaries of gepetto-viewer & example-robot-data import pinocchio
from example_robot_data import load
robot = load('a1', display=True)
gui = robot.viewer.gui
for go in robot.visual_model.geometryObjects:
name = robot.viz.getViewerNodeName(go, pinocchio.VISUAL)
if "RemoveLightSources" not in gui.getPropertyNames(name):
continue
gui.removeLightSources(name) @IoannisDadiotis : do you have any issue with that code ? |
@nim65s I am still getting the same visualization (with gepetto-viewer binaries and source of example-robot-data). |
Sorry, my mistake. It works for A1. I will now test if the issue still exists with our centauro robot which was the initial reason I came to this issue and report back |
Centauro description has been added here. Meshes are .stl files, not .dae. Can .stl files also include light sources? In any case I tried, similar to the above, to run:
|
This time, the issue may be the large scale. In the loop above, add something like if "ApplyScale" in gui.getPropertyNames(name):
gui.callVoidProperty(name, "ApplyScale") |
We are getting close.
|
Your loop isn't correct. You should call ApplyScale even if RemoveLightSource is not available. That being said, I'm not 100% sure this is your problem. |
Hi guys,
It seems I have another bug.
No matter what color I provide to a mesh, the mesh is always displayed as completely white.
I don't have any color issue in pybullet, and pybullet loads the color that is specified in the material tag of urdf.
However when loading in gepetto-gui, the color doesn't seem to change.
I checked the pinocchio parser, and it is providing the good color information to gepetto-viewer. I also tried changing the color directly using the gui interface in gepetto-gui, and there is no effect.
Could you please help me figure out the issue?
The text was updated successfully, but these errors were encountered: