installing gazebo - use the ros2 package to install it directly.
if done this way, the normal gz command to start wont work, you need to use:
ign gazebo -v 4 -r visualize_lidar.sdf
This is covered in the ros2 tutorials, but mentioned nowhere on the gazebo tutorials.
https://docs.ros.org/en/iron/Tutorials/Advanced/Simulators/Gazebo/Gazebo.html
Crashes when trying to launch on wsl2, likely a gpu problem:
libEGL warning: failed to open /dev/dri/renderD128: Permission denied
libEGL warning: failed to open /dev/dri/renderD128: Permission denied
libEGL warning: NEEDS EXTENSION: falling back to kms_swrast
[GUI] [Dbg] [MinimalScene.cc:602] Create scene [scene]
[GUI] [Wrn] [Application.cc:797] [QT] Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
If that is not possible, in Qt 5 you must at least reimplement
QCoreApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'Ogre::UnimplementedException'
what(): OGRE EXCEPTION(9:UnimplementedException): in GL3PlusTextureGpu::copyTo at /build/ogre-next-UFfg83/ogre-next-2.2.5+dfsg3/RenderSystems/GL3Plus/src/OgreGL3PlusTextureGpu.cpp (line 677)
Stack trace (most recent call last) in thread 963:
#10 Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#9 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f9abb9d765f, in
#8 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f9abb945ac2, in
#7 Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f9ab5f4999d, in
#6 Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f9ab5f47f90, in qTerminate()
#5 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f9ab7c0b276, in std::terminate()
#4 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f9ab7c0b20b, in
#3 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f9ab7bffb9d, in
#2 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f9abb8d97f2, in abort
#1 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f9abb8f3475, in raise
#0 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f9abb9479fc, in pthread_kill
Aborted (Signal sent by tkill() 728 1000)
cronicled here:
https://github.com/gazebosim/gz-sim/issues/920
trying to update this: