ros-visualization / rviz

ROS 3D Robot Visualizer
BSD 3-Clause "New" or "Revised" License
822 stars 462 forks source link

Fullscreen CameraDisplay #743

Open jbohren opened 10 years ago

jbohren commented 10 years ago

For a long time now I've liked to have a fullscreen RViz camera display. I took a look at the calls that the Oculus plugin makes to make its window fullscreen, but the same doesn't seem to work with ImageDisplay or CameraDisplay.

I feel like this shouldn't be hard, but I'm not too familiar with the RViz, Qt, and Ogre APIs, so I don't know what the best approach is. If it's something simple, and someone could give me some guidance, I could do it and post a PR.

wjwwood commented 10 years ago

Unfortunately I am not very familiar with this part of rviz either, @dgossow or @hersh might know.

hersh commented 10 years ago

http://stackoverflow.com/questions/9412971/how-to-set-qwidget-fullscreen-but-real-fullscreen-change-resolution-set-mod this has a bunch of info on making a qwidget take over the full screen. The image and camera displays each have an "associated widget" which is the window that shows the image. You can get a pointer to it via the Display API. Then just call the full-screen-ification functions in the link.

hersh commented 10 years ago

Just ignore the stuff about changing resolution in the link obviously.