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

Port Render event from ign-gazebo #68

Closed
chapulina opened this issue May 29, 2020 · 0 comments
Closed

Port Render event from ign-gazebo #68

chapulina opened this issue May 29, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@chapulina
Copy link
Contributor

The Render event was added to ign-gazebo so that various GUI plugins could run code that was guaranteed to run on ign-rendering's main thread. This is important when making changes to the rendering scene.

This concept would be very helpful to have in ign-gui so that we can write pure ign-gui plugins that affect the rendering scene. This should allow us to port a few plugins that are currently in ign-gazebo but could be here, like the GridConfig.


The way the GUI events are working on ign-gazebo is a bit involved:

  1. The Scene3D plugin emits the Render event from the rendering thread to the main window.
  2. Other plugins can filter all the main window events and do what they need when they see a render event.

This is a bit involved and maybe even hacky, but it accomplishes cross-plugin communication without direct dependencies between them, on the same thread and without polluting the transport space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant