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

issue when using gui.setColor() in python #152

Open
hammoudbilal opened this issue Sep 28, 2020 · 1 comment
Open

issue when using gui.setColor() in python #152

hammoudbilal opened this issue Sep 28, 2020 · 1 comment

Comments

@hammoudbilal
Copy link

Hi,

I'm trying to change the colors of visual objects using gui.setColor(nodeName, [r,g,b,a])
this used to work fine until recent update, now it seems to work only if I add a mesh with an stl extension

  • if I add a mesh with .dae or use something like gui.addCone(,,, [r,g,b,a]) then what ever rgb scale I use it shows in black
  • if I check the body tree in the gepetto-gui and I click on the color of an object within the tree then it displays the values I used (you can see in the figure below some shade of orange) however it displays it in black
    Screenshot from 2020-09-27 20-39-22

is there anything I might be doing wrong ?

@jmirabel
Copy link
Contributor

I can't reproduce your issue. If I do

from gepetto.corbaserver import gui_client
gui = gui_client(window_name="t")
gui.addCone('t/c', 0.1, 0.1, [0.5, 0.5, 0., 1.])

I get a cone with a yellow-green color.

Do you have a minimal reproducible example ?

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