Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ionutnechita opened this issue Nov 18, 2023 · 4 comments
Open

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

ionutnechita opened this issue Nov 18, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ionutnechita
Copy link

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 ionutnechita added the bug Something isn't working label Nov 18, 2023
@traversaro
Copy link
Collaborator

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
Copy link

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
Copy link
Author

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
Copy link

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 #2688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants