Rviz plugin - Fullscreen mode for an Ogre::RenderWindow
Hi all, I am trying to figure out how to set the fullscreen mode of a Ogre::RenderWindow for my own rviz plugin.
I am using the code of the default plugin Camera Display of rviz. It uses the Ogre::RenderWindow to visualize the output of the camera. Actually I can change most of the properties of the window but I couldn't set the fullscreen mode for that window. I need the fullscreen mode just for the camera window of the camera and not for the whole rviz window.
I tried without success the instruction
render_panel_->getRenderWindow()->setFullscreen(true, 1366, 768);
inside the event
void MyCameraDisplay::onInitialize()
Any suggestions?
Thanks