Closed namanmalik-ari closed 1 year ago
Hi @namanmalik-ari Thank you for the report. I've encountered this error before. You have to configure the gazebo to render using the GPU screen. It could be accomplished by:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia <your-command>
prime-select
tool (reboot required). By default, it is set to on-demand
in which the system selects libraries to render automatically (not always correctly).
sudo prime-select nvidia
Please let me know if it works for you.
Thanks a lot, that worked just fine. I guess, I forgot to switch to the the nvidia-drivers.
Today when I ran it I got the same error again. I tried __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ign gazebo sonoma_with_rgl.sdf
and that worked.
Here are some other instructions for PopOS.
https://support.system76.com/articles/graphics-switch-pop/
It seems to use prime-select
I need to install nvidia-prime
but I get this error when I try that:
sudo apt-get install nvidia-prime
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
pop-desktop : PreDepends: pop-de-gnome but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
So I'll probably just use the environment options for now.
@adamsj-ros I have bashrc like this
export GAZEBO_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/ign-gazebo-6/plugins:${GAZEBO_PLUGIN_PATH} export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/x86_64-linux-gnu/ign-gazebo-6/plugins export IGN_GAZEBO_SYSTEM_PLUGIN_PATH=/home/praveen/simulatorcheck/src/RGLGazeboPlugin/install/RGLServerPlugin:$IGN_GAZEBO_SYSTEM_PLUGIN_PATH export IGN_GUI_PLUGIN_PATH=/home/praveen/simulatorcheck/src/RGLGazeboPlugin/install/RGLVisualize:$IGN_GUI_PLUGIN_PATH export OGRE_RESOURCE_PATH=/usr/lib/x86_64-linux-gnu/OGRE-1.9.0
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ign gazebo sonoma_with_rgl.sdf when i try to run this command gazebo gui is not responding without offload again there is no visualization. Could you help me out!. Thanks in advance.
@adamsj-ros Yesterday when I tried it worked but now it is not.
Hi, So excited to see a new lidar plugin available in the Gazebo sphere. I have been meaning to try out the plugin but got a speed bump in the process. I have installed all the dependencies as mentioned in the Readme, Downloaded all 4 shared libraries from the releases, added them in their respective gazebo paths and gave them executable permissions. But for some reason both the test simulations crashes as soon as I add
RGL Visualize
in the Gazebo GUI throwing this exception:Am I missing some steps or dependencies that are needed to be installed or is there a bug in the
libRGLVisualize.so
library since I am not getting any error while launching the simulation so it should be able to find and load the libraries successfully.