Error using depth sensor in Gazebo 7
Hi all,
I am using Ros kinetic, with Ubuntu 16.04. I am running Gazebo 7, trying to use the turtlebot demo. I ran the simulation using the following command:
$ roslaunch turtlebot_gazebo turtlebot_world.launch
Sadly, the simulation crashes when I am try to read the rgbd sensor data... for example using image_view program. I got the following error:
gzserver: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreRenderSystem.cpp:546: virtual void Ogre::RenderSystem::setDepthBufferFor(Ogre::RenderTarget*): Assertion `bAttached && "A new DepthBuffer for a RenderTarget was created, but after creation" "it says it's incompatible with that RT"' failed.
Aborted (core dumped)
[gazebo-2] process has died [pid 28958, exit code 134, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -e ode /opt/ros/kinetic/share/turtlebot_gazebo/worlds/playground.world __name:=gazebo __log:=/home/jcacace/.ros/log/36b089ba-b996-11e7-b5cd-4ccc6a9b3c41/gazebo-2.log].
log file: /home/jcacace/.ros/log/36b089ba-b996-11e7-b5cd-4ccc6a9b3c41/gazebo-2*.log
Has anyone simulated the kinect with a similar set-up?
Thank you!
Seeing as this is a crash in Gazebo itself, this should probably be reported on the issue trackers of either Gazebo, or
gazebo_ros_pkgs
.Thank you. I will follow you suggestion.
As a bit of additional info, I cannot replicate this crash on my 16.04+Kinetic machine using the same Ogre version. This likely is an issue with graphics drivers and/or OpenGL. Check out this bug where some have the same error that you do:
https://bitbucket.org/osrf/gazebo/iss...
As an easy test you could try running
export SVGA_VGPU10=0
in a terminal you launch Gazebo from as reported in this comment on previous bugHi jarvisschultz. Thanks to your suggestion I think that my issue was (probably) related to graphic acceleration or graphical card drivers. I re-installed Nvidia proprietary driver and now it works.
Hi @pacifica, may I ask what commands you gave in to re-install the Nvidia proprietary driver ? I am experiencing the same issue, I tried using
export SVGA_VGPU10=0
but it did not fix it, so I would like to try yours but I'm afraid I might do something wrong.... Thanks!i found that changing fsaa variable to zero had solved this problem in some cases. link is provided by @jarvisschultz . But I have installed gazebo as a ros package from source and i am unable to find this variable if somebody could help