Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SITL: fix gazebo garden carsh in VMware virtual machine #21617

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TianmingLi
Copy link

Solved Problem

Fixes #21607

Solution

  • Force gazebo use render engine ogre rather than ogre2

Changelog Entry

Alternatives

Test coverage

Context

@dagar
Copy link
Member

dagar commented May 22, 2023

Any objection @Jaeyoung-Lim?

@dagar dagar requested a review from Jaeyoung-Lim May 22, 2023 13:01
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs more testing on other systems.

Why does this make a difference for a virtual machine, and what are the implications of using ogre2 vs ogre?

Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the discussion in conda-forge/libignition-gazebo-feedstock#27, it looks like we cannot use ogre1 with ROS2

@junwoo091400 junwoo091400 added Sim: SITL software in the loop simulation Sim: gazebo Gazebo simulator (gz) labels Jun 1, 2023
@MaEtUgR
Copy link
Member

MaEtUgR commented Jun 5, 2023

Thanks @TianmingLi, this also fixes the UI in WSL! For the first time I get to even test one of these gz targets without it crashing immediately 😲
image
FYI @hamishwillee that's what we were looking for.

Maybe we can automatically add this option for VMWare and WSL similar to

if sudo dmidecode -t system | grep -q "Manufacturer: VMware, Inc." ; then
# fix VMWare 3D graphics acceleration for gazebo
echo "export SVGA_VGPU10=0" >> ~/.profile
fi
🤔

@dagar
Copy link
Member

dagar commented Jun 5, 2023

Maybe we can automatically add this option for VMWare and WSL similar to

if sudo dmidecode -t system | grep -q "Manufacturer: VMware, Inc." ; then
# fix VMWare 3D graphics acceleration for gazebo
echo "export SVGA_VGPU10=0" >> ~/.profile
fi

🤔

Let's see if we can catch it at runtime, and keep the actual "install" as simple as possible ideally sticking straight to installing stock packages and otherwise not changing the users environment.

@dagar
Copy link
Member

dagar commented Jun 10, 2023

Here's a workaround. #21712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sim: gazebo Gazebo simulator (gz) Sim: SITL software in the loop simulation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gazebo Simulation crash in VMware virtual machine
5 participants