Gazebo on WSL (Bash for Windows)
Hello All,
I recently install ROS Lunar on WSL (Windows Subsystem for Linux running Ubuntu 16.04 bash). The installation was done based on the standard Ubuntu instructions. I mirrored this installation on my Raspberry Pi running Ubuntu MATE.
I tried to launch Gazebo from both installations (WSL & RPi). The display in RPi is tunneled through ssh via X11 forwarding to host computer (which runs Windows 10). I am able to launch Gazebo and everything works fine. When I try to launch Gazebo from the WSL bash prompt (on the same Windows 10 host), Gazebo launches without any errors, but the visualization windows is blank/black.
I am surprised to how RPi is able render the visualization window, whereas WSL is unable to! I am a newbie to ROS, and do have the knowledge or wherewithal to debug this issue. Currently, I am stuck with some development work as RPi does not have enough grunt to handle the sim. Any pointers or help to resolve this issue will be greatly appreciated!
Thanks,
SamV
Asked by SamV on 2017-07-30 09:27:24 UTC
Answers
I have the same issue using gazebo-7.0.0 (installed using ros-kinetic-desktop-full). Note that I had to disable OpenGL/WGL acceleration on my X server, otherwhise gazebo (and rviz) would crash on startup.
Asked by LukasE on 2017-07-31 06:56:15 UTC
Comments
LukasE, I encountered the crash issue, but after I did a clean install on WSL, I did not require to disable acceleration on X server. Perhaps the crash had something to do with installation of cuda-375 drivers. Earlier, even glxgears demo used to be choppy. But after a full clean install (lxrun /uninstall followed by lxrun /install) the crashes resolved. I agree that this has something to do with Xserver on WSL, because I am able to launch Gazebo just fine from my Raspberry Pi.
Asked by SamV on 2017-08-01 09:37:40 UTC
Also, LIBGL_ALWAYS_SOFTWARE=1 (as suggested here: http://janbernloehr.de/2017/06/10/ros-windows) also did not help.
Asked by SamV on 2017-08-01 09:38:45 UTC
I have also added this to the discussion on Microsoft's GitHub repo (BashOnWindows) - see https://github.com/Microsoft/BashOnWindows/issues/1450
Asked by SamV on 2017-08-01 09:39:52 UTC
@LulasE, could you tell which XServer are you using?
Asked by Dmitriy on 2017-10-12 11:27:31 UTC
Comments