How to run Gazebo + RVIZ on Windows 10 using WSL2

preview_player
Показать описание
In this video I will show you how to run Gazebo and RVIZ in Windows using WSL2. This is really helpful as it makes it opens up the posibility for ROS1 development on Windows 10.

Installation Instructions WSL2:

Installation of ROS, RVIZ and Gazebo:

Commands to run in WSL2:
export GAZEBO_IP=127.0.0.1
export LIBGL_ALWAYS_INDIRECT=0
Рекомендации по теме
Комментарии
Автор

OMG I love you, I had been trying for 2 days <3

d_printall
Автор

This totally helped after everything else i found online didn't work

Stigmaru
Автор

Thanks you so much Emil! You help me a lot!

zhihuauk
Автор

Thanks, it is working. Strange thing is that Gazebo was starting and I could even subscribe to camera topic of the Turtlebot3 from Rviz but Gazebo GUI was not starting. Now everything works.

berktepe
Автор

Tanks you a lot this video is so helpful thanks

saeednami
Автор

Thank you for this useful tutorial! By this method, can ros use gpu support instead of only cpu?

tomsai
Автор

Running 20.04, and ROS foxy, had to include both of these to see the robot mesh during the moveit tutorial.
export LIBGL_ALWAYS_SOFTWARE=1
export LIBGL_ALWAYS_INDIRECT=0

CaseyGregoire
Автор

Thanks sir . gazebo is ok but rviz no

This message appeared

qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted

wh
Автор

hey can you please me out with this

qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

namanjaohari
Автор

Right now we can connect WSL to Arduino. Let's

deadyanothaikiropoolchait
Автор

if gazebo works and rviz keeps giving an error, try running a wsl --update in the windows terminal and try again. this worked for me. took hours to figure out

chiamakambanefo
Автор

thank u for this video, can you please explain how to install gazebo and rviz before implementing this video?

elbudmg
Автор

Would the steps be mostly the same for ros 2, rviz 2 & ignition gazebo with wsl 2 & ubuntu 22 on windows 10?

draggador
Автор

ı take this error:
Command 'gazebo' not found, but can be installed with:
sudo apt install gazebo

aliumman
Автор

Emil, thank you for the tutorial! Could you please specify which version of Ubuntu in WSL and, respectively, ROS/Gazebo version are you using?

aufarik
Автор

Before this you have to install 1.ros 2.rviz 3.gazebo
am I right?

jaeyounglee
Автор

is this how i install gazebo or i need something else to install it p;ease answer me?

futuresciences
Автор

Amazing, Can I Connect SITL Ardupilot to Gazebo in windows?

Swifter_Developer
Автор

Hi I'm getting this error

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 26
Current serial number in output stream: 26

can you please help

aVTuser
Автор

xcb connection still error and alsa lib still no such file directory hmm

basithAA