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

Gmapping not working, can not create map

asked 2013-04-17 22:48:27 -0500

Astronaut gravatar image


Hello Im trying to create a map from a bag file using the gmapping. I have done everything using the tutorial but when I tried to save the map with the map server it was just waited for the map and nothing happened. My bag file has camera, imu, laser scans and odometry .

The output of command of rxbag is

camera/depth/image lse_xsens_mti/xsens/imu/data odom scan

My launch file is


        <param name="/use_sim_time" value="true"/>

        <node name="rosplay" pkg="rosbag" type="play" args="/home/2013-01-11-15-47-56.bag  --clock"/>
            <node pkg="tf" type="static_transform_publisher" name="baselink_laser" args="0 0 0 0 0 0 /base_link /laser 10"/>

            <node pkg="gmapping" type="slam_gmapping" name="slam_gmapping" output="screen">
            <param name="base_frame" value="base_link"/>
                <param name="odom_frame" value="base_link"/>
            <param name="map_frame" value="map"/>


        <!-- Start an rviz node with a custom configuration for the viewpoint, map_server, trajectory, laser scans, etc -->
        <node pkg="rviz" type="rviz" output="screen" name="rviz" args="-d $(find pow_analyzer)/launch/pow_rviz.vcg"/>


Any help?
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-18 00:14:54 -0500

dornhege gravatar image

You configured the odom_frame as base_link. That should be odom instead (or whatever frame your odometry is in). As it is gmapping won't get any movements.

edit flag offensive delete link more


ok. thanks. now its working

Astronaut gravatar image Astronaut  ( 2013-04-18 00:22:38 -0500 )edit

Question Tools


Asked: 2013-04-17 22:48:27 -0500

Seen: 2,084 times

Last updated: Apr 18 '13