Using ignition gazebo with WSLg on Windows 11
I recently upgraded to Windows 11 and am using WSLg instead of VcXsrv for running ignition gazebo in WSL. I use the command ign gazebo shapes.sdf -v
to start the simulation and it shows a white world. Here's my output in terminal with verbose logging and a screenshot of the GUI.
Has anyone gotten this working? If so, was there any configuration you needed to do? Regular gazebo works and this used to work on WIndows 10 with VcXsrv.
Asked by bmchale on 2021-10-31 02:15:47 UTC
Answers
Related GitHub issue: https://github.com/ignitionrobotics/ign-gazebo/issues/920 .
Asked by silvio.traversaro on 2021-11-09 04:32:46 UTC
Comments
Hi, I got a similar situation (gazebo running but nothing inside the sim) I worked after adding the following variables on the WSL2 terminal:
export GAZEBO_IP=127.0.0.1 export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 export LIBGL_ALWAYS_INDIRECT=0 export LIBGL_ALWAYS_SOFTWARE=1
Asked by Alexouwu on 2023-02-12 20:45:23 UTC
Comments