hector slam not disaplying map in rviz
hi i am following these steps below to run my hector slam in rviz :
* README.txt*
Postprocessing Logfile example ==
Download this file: http://code.google.com/p/tu-darmstadt...
Open a new terminal window, type:
rosmake hector_slam
Launch the tutorial launch file provided in the hector_slam_launch package:
roslaunch hector_slam_launch tutorial.launch
Open another terminal, enter the directory of the .bag file and type:
rosbag play Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag --clock
Before this i installed ros using this command sudo apt-get install ros-indigo-hector-slam
But when I am running my second command which is the Ros launch its showing a warning sign:
[ INFO] [1439891300.286474566]: HectorSM p_map_update_angle_threshold_: 0.060000 [ INFO] [1439891300.286495451]: HectorSM p_laser_z_min_value_: -1.000000 [ INFO] [1439891300.286515964]: HectorSM p_laser_z_max_value_: 1.000000 [ INFO] [1439891300.329699919]: Successfully initialized hector_geotiff MapWriter plugin TrajectoryMapWriter. [ INFO] [1439891300.329809825]: Geotiff node started [ WARN] [1439891320.241781835]: No transform between frames /map and scanmatcher_frame available after
20.002011 seconds of waiting. This warning only prints once.
In the rviz display panel its also showing a warning sign
Global Status: Warn
Fixed Frame
No tf data. Actual error: Fixed Frame [map] does not exist
The rosabag file is running but no map /visualization is being displayed in rviz
Hi, what do you get when you run
rosrun rqt_tf_tree rqt_tf_tree
? I don't need you have the /map frame. You need that to produce the map.Put this line in your .launch file:
<node pkg="tf" type="static_transform_publisher" name="map_baselink_broadcaster" args="0 0 0 0 0 0 map base_link 100"/>
or
<node pkg="tf" type="static_transform_publisher" name="map_baselink_broadcaster" args="0 0 0 0 0 0 map scanmatcher_frame 100"/>
when and where shud i run this command
rosrun rqt_tf_tree rqt_tf_tree
and in which line i mean where i shud put that code of yours node pkgI'm having the same issue! I edited tutorial.launch in the hector_slam_launch/launch folder, adding:
<node pkg="tf" type="static_transform_publisher" name="map_baselink_broadcaster" args="0 0 0 0 0 0 map base_link 100"/>
as psprox96 suggests.
This got rid of the warnings but still no map...
Nevermind, it is making the map, I just didn't have the right topics watched in RVIZ, doh!
You run that command in the terminal, like how you rosmake the packages. Do you know where is your .launch file? The one you need to run to get the INFO.
Yup, and make sure you set your Global Frame in Rviz to /map and LaserScan to /scan.
I just directly type the rosmake command and the follow up code in the terminal and then open an another terminal then go to the directly that contains the bag file and then execute it. I don't go to any directory that contains the .launch file.I just type it when i open my terminal