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

RViz cannot display the STL format model file in the noetic version of ROS under Ubuntu20.04 #10002

Closed
1 of 2 tasks
PiBigStar5712 opened this issue Apr 20, 2023 · 3 comments
Closed
1 of 2 tasks
Labels

Comments

@PiBigStar5712
Copy link

Windows Version

Windows 10 Home 22H2 Insider: 19045.2006

WSL Version

0.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.79.1

Distro Version

Ubuntu20.04.5 LTS

Other Software

Nvidia-smi = 530.41.03
CUDA Version = 11.7
OpneGL under WSL use D3D12 = 3.1 Mesa 21.2.6
GLSL =1.4
ROS = noetic 1.16.0
RViz = 1.14.20

Repro Steps

  1. Install Ubuntu20.04

  2. wsl --set-default-version 2

  3. Install the xfce4 GUI

  4. sudo apt install ros-noetic-desktop-full

  5. Run RViz and import the STL model into it

Expected Behavior

In the case of using D3D12 as the renderer of OpenGL, I used my GPU for the rendering task and achieved the following effects:

image

My question:

1.Is there a way I can use GPU-accelerated OpenGL to render STL models in RViz without upgrading Ubuntu branch or Windows?
2.If so, do I need to upgrade OpenGL? What should I do if I need to upgrade? (I have tried to upgrade OpenGL using sudo add-apt-repository ppa:kisak/kisak-mesa and sudo apt update && sudo apt upgrade)

Actual Behavior

image

When I used the default D3D12 as the renderer for OpenGL, it ran as follows:

image

The STL model is not visualized, and no errors are reported.
According to ros-visualization/rviz#1748, this problem should be caused by D3D12 and can be resolved by modifying D3D12 to llvmpipe. The modified result is as follows:

When I type export LIBGL_ALWAYS_SOFTWARE=true in the terminal

image

At this point, I run the previous code again, and the result is as follows:

image

Although RViz can render STL models normally, this function is achieved through the CPU. This results in a very low framerate, which is not what I want. After all, the competitiveness of WSL is that I can use my GPU without reservation.

Diagnostic Logs

No response

@benhillis benhillis added the GPU label Apr 20, 2023
@OneBlue
Copy link
Collaborator

OneBlue commented Apr 25, 2023

Thanks for reporting this @PiBigStar5712.

@iourit: Can you help diagnosing the issue ?

@PiBigStar5712
Copy link
Author

Thanks for reporting this @PiBigStar5712.

@iourit: Can you help diagnosing the issue ?

@iourit @OneBlue So, after all this time, does your team have a solution to this problem?I am really troubled by the inability to render robot models using GPU.

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants