Gazebo gmapping demo launch file kills turtlebot_gazebo turtlebot_world.launch

asked 2017-07-17 02:19:45 -0600

updated 2017-07-18 17:13:05 -0600

allenh1 gravatar image

I am using ROS kinetic with Ubuntu Wily 15.10. I am following the tutorial for navigation as mentioned here- link text.

I run turtlebot_world.launch first and then when i launch the gmapping_demo.launch file, the initial gazebo process dies. This is the output I get -

gzserver: /build/ogre-1.9-ULIy19/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 4232, exit code 134, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -e ode /opt/ros/kinetic/share/turtlebot_gazebo/worlds/ __name:=gazebo __log:=/home/harsh/.ros/log/8fd3378a-6abe-11e7-9200-2ffd99fd289a/gazebo-2.log].
log file: /home/harsh/.ros/log/8fd3378a-6abe-11e7-9200-2ffd99fd289a/gazebo-2*.log

Note that other times roslaunch turtlebot_gazebo turtlebot_world.launch works normally. It is happening when I run amcl_demo.launch or gmappin_demo.launch .

edit retag flag offensive close merge delete


It appears you are using gazebo 2? If you look here, you'll see that Kinetic is meant to be used with Gazebo 7.x.

allenh1 gravatar image allenh1  ( 2017-07-18 17:16:21 -0600 )edit

Hi, the gazebo version is 7.0.0 only. I don't know what gazebo-2 means. When I ran it just now, it showed gazebo-1 everywhere. However, on running the gazebo is 7.0.0 only.

Harsh2308 gravatar image Harsh2308  ( 2017-07-27 09:04:12 -0600 )edit

Should I just install Ubuntu 14.04 with Indigo or is there a way around this? Has anyone able to run kinetic and gazebo/rviz SLAM simulations with Ubuntu 15.10 or 16.04 (Mate)?

Harsh2308 gravatar image Harsh2308  ( 2017-07-30 08:58:32 -0600 )edit

I've been able to do that, and I use Lunar most of the time (and build GMapping/cartographer from source)

allenh1 gravatar image allenh1  ( 2017-07-30 17:08:32 -0600 )edit

However I believe I undstnd wat gazebo-2 (or sometimes gazebo-1) means.Roslaunch launches multiple nodes and suffixed number after the node shows (and this is my guess) the order at which it was run.So second node launched'd have prefix 2 and first one as 1.

Harsh2308 gravatar image Harsh2308  ( 2017-09-01 07:27:47 -0600 )edit