Creating a custom widget / ui window
Posted: Wed Apr 11, 2018 3:57 pm
Hi,
I would like to add a window with some qt elements, like circles, text, etc. to the argos window. Ideally, this window would show up when a robot is clicked, and let user know which robot has been clicked (display a robot id or similar). How could I achieve this?
I have started with putting the following into the Pre-step function of my custom loop function code:
however, the main window doesn't allow to add anything to it.
The end purpose of this is to show a popup window with a dynamic diagram of a neural network once a robot is clicked.
I would like to add a window with some qt elements, like circles, text, etc. to the argos window. Ideally, this window would show up when a robot is clicked, and let user know which robot has been clicked (display a robot id or similar). How could I achieve this?
I have started with putting the following into the Pre-step function of my custom loop function code:
Code: Select all
CQTOpenGLRender& render = dynamic_cast<CQTOpenGLRender&>(GetSimulator().GetVisualization());
render.GetMainWindow()...
The end purpose of this is to show a popup window with a dynamic diagram of a neural network once a robot is clicked.