"Waiting for the map" when using map_server and rosbag
Hello, I'm currently doing the tutorial teb_local_planner and now I'm trying to build a map with this tutorial. I execute all commands and at the end of this, I have problem with this command :
~/Documents/pts-info2-master/mybot_ws-base_sensors/src$ rosrun map_server map_saver -f my_map
[ INFO] [1553269724.865617557]: Waiting for the map
I never get the map and I must kill the process.
I use Velodyne, Ubuntu 16.04 with ROS Kinetic distribution. Thanks.
I run Gazebo with the robot.
To launch node for odometry
roslaunch odometry_pkg start_odom.launch
then :
To launch node for laser_scan
roslaunch sensor_pkg laser_scan.launch
To launch node for point cloud
roslaunch sensor_pkg point_cloud.launch
This is my rostopic list :
/clicked_point
/clock
/cloud
/cmd_vel
/gazebo/link_states
/gazebo/model_states
/gazebo/parameter_descriptions
/gazebo/parameter_updates
/gazebo/set_link_state
/gazebo/set_model_state
/gazebo_gui/parameter_descriptions
/gazebo_gui/parameter_updates
/initialpose
/joint_states
/move_base_simple/goal
/mybot/camera1/camera_info
/mybot/camera1/image_raw
/mybot/camera1/image_raw/compressed
/mybot/camera1/image_raw/compressed/parameter_descriptions
/mybot/camera1/image_raw/compressed/parameter_updates
/mybot/camera1/image_raw/compressedDepth
/mybot/camera1/image_raw/compressedDepth/parameter_descriptions
/mybot/camera1/image_raw/compressedDepth/parameter_updates
/mybot/camera1/image_raw/theora
/mybot/camera1/image_raw/theora/parameter_descriptions
/mybot/camera1/image_raw/theora/parameter_updates
/mybot/camera1/parameter_descriptions
/mybot/camera1/parameter_updates
/odom
/rosout
/rosout_agg
/scan
/tf
/tf_static
/velodyne_points
I tried these commands :
rosbag record -O mylaserdata /base_scan /tf
rosbag record -O mylaserdata /scan /odom /velodyne_points /tf
I kill the process.
rosparam set use_sim_time true
rosrun gmapping slam_gmapping scan:=base_scan _odom_frame:=odom_combined
rosbag play --clock mylaserdata
In the terminal of the last
Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained
at line 277 in /tmp/binarydeb/ros-kinetic-tf2-0.5.20/src/buffer_core.cpp
Warning: TF_OLD_DATA ignoring data from the past for frame right_wheel at time 1519 according to authority
unknown_publisher
Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained
at line 277 in /tmp/binarydeb/ros-kinetic-tf2-0.5.20/src/buffer_core.cpp
Warning: TF_OLD_DATA ignoring data from the past for frame left_wheel at time 1519 according to authority
unknown_publisher
Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained
at line 277 in /tmp/binarydeb/ros-kinetic-tf2-0.5.20/src/buffer_core.cpp
[ WARN] [1553529895.095733157, 1519.007083163]: Detected jump back in time of 42.4629s. Clearing TF
buffer.
Warning: TF_OLD_DATA ignoring data from the past for frame odom_combined at time 1519.07 according to
authority unknown_publisher
Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained
at line 277 in /tmp/binarydeb/ros-kinetic-tf2-0.5.20/src/buffer_core.cpp
[ WARN] [1553529895.116016908, 1519.027228311]: Detected jump back in time of 42.4608s. Clearing TF
buffer.
[ WARN] [1553529895.136380505, 1519.047353639]: Detected jump back in time of 42.4546s. Clearing TF
buffer.
Warning: TF_OLD_DATA ignoring data from the past for frame base_link at time 1519.05 according to authority
unknown_publisher
Possible reasons are listed at http://wiki.ros.org/tf/Errors%20explained
at line 277 in /tmp/binarydeb/ros-kinetic-tf2-0.5.20/src/buffer_core.cpp
[ WARN] [1553529895.145895211, 1519.057411630]: Detected jump back in time of 42.4506s. Clearing TF
buffer.
[ WARN] [1553529895.166244974, 1519 ...