gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.16k stars 478 forks source link

GAZEBO does not scale the map to the entire screen #3361

Open ionutnechita opened 8 months ago

ionutnechita commented 8 months ago

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

traversaro commented 8 months ago

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!

renyuhui0415 commented 3 months ago

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.

ionutnechita commented 3 months ago

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.

renyuhui0415 commented 3 months ago

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