osrf / rocker

A tool to run docker containers with overlays and convenient options for things like GUIs etc.
Apache License 2.0
555 stars 70 forks source link

Gazebo failure #181

Closed rdesc closed 2 years ago

rdesc commented 2 years ago

Hi, I can't get gazebo to launch correctly.

I get the following error: libGL error: MESA-LOADER: failed to retrieve device information

I'm on Ubuntu 20.04 and Nvidia driver version 510.

tfoote commented 2 years ago

That's an error but searching for it suggests that it should be more of a warning than an error: https://forums.raspberrypi.com/viewtopic.php?t=193902

There's not enough information to reproduce your problem in this. As this seems to be more of a request for help on usage versus a bug report. Please ask on answers.ros.org with a full description of your system, the fully command line options that you're using as well as the whole console output of your run so we can try to see what the underlying error is.

rdesc commented 2 years ago

Thanks, I managed to resolve the issue via exporting some variables:


# for future use - to support multiple Gazebo versions
export GZ_VERSION=garden

# not usually required as should default to localhost address
export GZ_IP=127.0.0.1

# ensure gazebo finds the config for this installation
export GZ_CONFIG_PATH=\
$HOME/gz_ws/install/share/ignition

# ensure the model and world files are found
export GZ_SIM_RESOURCE_PATH=\
$HOME/gz_ws/src/asv_wave_sim/gz-marine-models/models:\
$HOME/gz_ws/src/asv_wave_sim/gz-marine-models/world_models:\
$HOME/gz_ws/src/asv_wave_sim/gz-marine-models/worlds
woensug-choi commented 9 months ago

https://github.com/kinu-garage/hut_10sqft/issues/819#issuecomment-1496115410 worked for me