ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

turtlebot sim crashes on subscribing to any topic

asked 2017-11-18 19:07:24 -0500

inani47 gravatar image

First I run the turtlebot run launch file from the terminal:

    $ roslaunch turtlebot_gazebo turtlebot_world.launch

Then in a new terminal:

     $ rostopic echo /scan

As soon as I subscribe to the /scan topic i get 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-1] process has died [pid 21624, 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/pranav/.ros/log/f18cc0fc-ccc2-11e7-9a30-9cb6d0e527e7/gazebo-1.log].

log file: /home/pranav/.ros/log/f18cc0fc-ccc2-11e7-9a30-9cb6d0e527e7/gazebo-1*.log

edit retag flag offensive close merge delete

Comments

Hi @inani47, did you manage to fix that ? I am having the same issue of gazebo crashing with no reason when launching it with ros and this version of Ogre.

monabf gravatar image monabf  ( 2018-01-25 09:44:05 -0500 )edit

@monabf sorry for the late reply. I was able to resolve the issue by updating to a newer version of Gazebo. All the best!

inani47 gravatar image inani47  ( 2018-04-08 16:45:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-07-29 18:23:10 -0500

KFW gravatar image

To expand - I also got around this by updating to a newer version of Gazebo (I'm running Kinetic on Ubuntu 16.04).

I followed the "Alternative Installation" instructions here (with an important exception noted below): http://gazebosim.org/tutorials?tut=in...

IMPORTANT NOTE - if you're on Kinetic, you want to install "gazebo7" NOT "gazebo9" (which would be for Melodic)

Hope that helps - I spent many hours on Google figuring this out. But now the examples in Chapter 7 of Programming Robots with ROS run (as far as I've tried).

Cheers, /K

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-11-18 19:07:24 -0500

Seen: 584 times

Last updated: Jul 29 '18