-
Notifications
You must be signed in to change notification settings - Fork 498
Toggle the GUI visualization of light frustrums / green lines #2327
Comments
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). We already have ways to toggle visualization of the Grid, Origin, Contacts, Link Frames, Joints, etc. I think we could add this for lights as well. |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
|
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). We added Link Frame visualizations to the GUI in pull request #1762, which may provide an example for some of the changes to be made, for example adding a new |
With #3011, is there anything exposed to the end user to toggle light visualization (e.g. from the CLI, GUI or within URDF)? Thanks! |
not that I know of. In the end, we wrote a plugin that loops through the lights in the scene and call |
@iche033 Would you be able to point me to this plugin you wrote that disables the light visual? I'm attempting to do something similar. Thanks! |
looks like that particular branch with the plugin was lost when migrating a repo from bitbucket to github. So I'll just post the code here. I took out some include headers related to other projects so there maybe additional gazebo headers you'll need to add to the code to build it. LightVisualPlugin.cc
LightVisualPlugin.hh
If I remember correctly, the usage is:
|
Original report (archived issue) by Andrew Symington (Bitbucket: asymingt).
I would like to be able to turn off the visualization of lights in the GUI, as I have a green laser plugin for my model that looks confusingly like the lines used to visualize all directional/spot lights! The method would be similar to the
<visualize>
child of<sensor>
in SDF.Perhaps something along these lines:
In addition, since one cannot attach a
VisualPlugin
to a light visual, it would be extremely useful to set visibility flags in themsgs::Light
, so that one can programatically create / update light visibility.The text was updated successfully, but these errors were encountered: