gazebo-classic icon indicating copy to clipboard operation
gazebo-classic copied to clipboard

GAZEBO does not scale the map to the entire screen

Open ionutnechita opened this issue 1 year ago • 4 comments

Hi Gazebo Team,

I installed gazebo on my Ubuntu system today. But i noticed that the map i want to use doesn't scale to full screen.

Maybe someone has seen this behavior before.

Photo: capture1-gazebo1 capture2-resolution-display1

gazebo -version Gazebo multi-robot simulator, version 11.10.2 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org

OS: Ubuntu 22.04 LTS ROS: Humble Gazebo SIM: 11.10.2+dfsg-1

ionutnechita avatar Nov 18 '23 13:11 ionutnechita

Can you please follow the bug report template as described in https://github.com/gazebosim/gazebo-classic/issues/new?assignees=&labels=bug&projects=&template=bug_report.md ? This ensure that you provide all the necessary info to reproduce the problem, thanks!

traversaro avatar Nov 19 '23 18:11 traversaro

Have you solved it? I also have this problem, Ubuntu20.04 + gazebo11. After investigation, it was found that there was a problem with the display scaling of the Ubuntu system. When the scaling ratio was adjusted to 100%, it became normal.

renyuhui0415 avatar Mar 27 '24 08:03 renyuhui0415

Hi @renyuhui0415,

I didn't solve it. I upgraded to Ubuntu 22.04. But in the future I will use Ubuntu 24.04 or OpenSUSE. I don't want to use X11 anymore.

ionutnechita avatar Mar 31 '24 13:03 ionutnechita

Hi @renyuhui0415,

I didn't solve it. I upgraded to Ubuntu 22.04. But in the future I will use Ubuntu 24.04 or OpenSUSE. I don't want to use X11 anymore.

Hello, I have solved this problem. I found a solution in other issues. Due to HidPI, I need to add the following two lines of code to .bashrc file.

export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCREEN_SCALE_FACTORS=[1.0]

For a more detailed answer, please see this issue https://github.com/gazebosim/gazebo-classic/issues/2688

renyuhui0415 avatar Apr 01 '24 11:04 renyuhui0415