ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

RViz having very low fps on docker container

asked 2022-10-25 10:16:56 -0600

gibinjoe gravatar image

updated 2022-10-26 04:07:02 -0600

ravijoshi gravatar image

I have created a simple docker container on Windows 10 with ROS Melodic and have set up an X server. So I can view the GUI applications. However, when I launch RViz using rosrun rviz rviz, the RViz window opens up, but the FPS is very low (<5). On the other hand, I tried the same on another system with Windows 11, and the FPS was good (>25).

Has anyone faced this issue?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-21 11:25:40 -0600

ThomasL624 gravatar image

I think the Ruiz is not using the GPU in default. I also encounter this issue (low fps) in my desktop (i5-10400, RTX3090, 32GB ram). This desktop is clean built with ROS2 on ubuntu 20.04.5. When I just run Rviz2 it can achieve 31 fps, but when loading point cloud.. only 1-2 fps.

Fun fact is that I have also tried to build on a laptop and a desktop (same GPU, but i4-4790). Both machine works just fun and achieved a 20-30 fps when loading with the same pcd point cloud.

Totally out of mind how to fix this. Not sure is the kernel or what kind of low-level issue.

I used the same Dockerfile to rebuild same image on different machine, the i5-10400 (I got 2 machine with same spec) both having this low fps issue, no matter source build / docker build.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-10-25 10:16:56 -0600

Seen: 470 times

Last updated: Nov 21 '22