hector_mapping does not works [closed]
Hello
I tried to run the hector mapping package. But even does not shows the map in rviz. I build and make the package. Try to run with the minimum parameters the launch file . This my hector launch file
<launch>
<param name="/use_sim_time" value="true"/>
<node name="rosplay" pkg="rosbag" type="play" args="/home/bojan/svn/POW/ROS/Fuerte/Data/User1/pow_freek_3_2011-04-01-14-21-48.bag --clock"/>
<node pkg="tf" type="static_transform_publisher" name="baselink_laser" args="0 0 0 0 0 0/base_frame/laser 10"/>
<node name="hector_mapping" pkg="hector_mapping" type="hector_mapping" output="screen">
<param name="pub_map_odom_transform" value="true"/>
<param name="map_frame" value="map" />
<param name="base_frame" value="base_link"/>
<param name="odom_frame" value="base_link"/>
</node>
</launch>
But it does not shows the map and not working at all. Any help??What should I set up??
This is the output of hector_mapping to the terminal
started roslaunch server http://name-desktop:44649/
SUMMARY
========
PARAMETERS
* /hector_mapping/base_frame
* /hector_mapping/map_frame
* /hector_mapping/odom_frame
* /hector_mapping/pub_map_odom_transform
* /rosdistro
* /rosversion
* /use_sim_time
NODES
/
baselink_laser (tf/static_transform_publisher)
hector_mapping (hector_mapping/hector_mapping)
rosplay (rosbag/play)
auto-starting new master
process[master]: started with pid [14546]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 7d35a048-3abe-11e2-b92b-80c16ee7a132
process[rosout-1]: started with pid [14559]
started core service [/rosout]
process[rosplay-2]: started with pid [14573]
process[baselink_laser-3]: started with pid [14589]
process[hector_mapping-4]: started with pid [14603]
HectorSM map lvl 0: cellLength: 0.025 res x:1024 res y: 1024
HectorSM map lvl 1: cellLength: 0.05 res x:512 res y: 512
HectorSM map lvl 2: cellLength: 0.1 res x:256 res y: 256
[ INFO] [1354260059.843535869]: HectorSM p_base_frame_: base_link
[ INFO] [1354260059.843649032]: HectorSM p_map_frame_: map
[ INFO] [1354260059.843685473]: HectorSM p_odom_frame_: base_link
[ INFO] [1354260059.843707664]: HectorSM p_scan_topic_: scan
[ INFO] [1354260059.843721148]: HectorSM p_use_tf_scan_transformation_: true
[ INFO] [1354260059.843747232]: HectorSM p_pub_map_odom_transform_: true
[ INFO] [1354260059.843787853]: HectorSM p_scan_subscriber_queue_size_: 5
[ INFO] [1354260059.843834434]: HectorSM p_map_pub_period_: 2.000000
[ INFO] [1354260059.843850294]: HectorSM p_update_factor_free_: 0.400000
[ INFO] [1354260059.843864499]: HectorSM p_update_factor_occupied_: 0.900000
[ INFO] [1354260059.843878381]: HectorSM p_map_update_distance_threshold_: 0.400000
[ INFO] [1354260059.843892145]: HectorSM p_map_update_angle_threshold_: 0.900000
[ INFO] [1354260059.843906308]: HectorSM p_laser_z_min_value_: -1.000000
[ INFO] [1354260059.843920215]: HectorSM p_laser_z_max_value_: 1.000000
Error ::: lookupTransform base_link to laser timed out. Could not transform laser scan into base_frame.
This is te topic name of the laser scans
/scan
This the output of "rosnode info hector_mapping"
--------------------------------------------------------------------------------
Node [/hector_mapping]
Publications:
* /map_metadata [nav_msgs/MapMetaData]
* /slam_cloud [sensor_msgs/PointCloud]
* /rosout [rosgraph_msgs/Log]
* /tf [tf/tfMessage]
* /poseupdate [geometry_msgs/PoseWithCovarianceStamped]
* /map [nav_msgs/OccupancyGrid]
* /slam_out_pose [geometry_msgs/PoseStamped]
Subscriptions:
* /tf [tf/tfMessage]
* /syscommand [unknown type]
* /clock [rosgraph_msgs/Clock]
* /initialpose [unknown type]
* /scan [sensor_msgs/LaserScan]
Services:
* /hector_mapping/tf_frames
* /hector_mapping/set_logger_level
* /dynamic_map
* /hector_mapping/get_loggers
contacting node http://bojan-desktop:42614/ ...
Pid: 14813
Connections:
* topic: /rosout
* to: /rosout
* direction: outbound
* transport: TCPROS
* topic: /tf
* to: /hector_mapping
* direction: outbound
* transport: INTRAPROCESS
* topic: /clock
* to: /rosplay (http://bojan-desktop:52803/)
* direction: inbound
* transport: TCPROS
* topic: /tf
* to: /hector_mapping (http://bojan-desktop:42614/)
* direction: inbound
* transport: INTRAPROCESS
* topic: /tf
* to: /baselink_laser (http://bojan-desktop:54385/)
* direction: inbound
* transport: TCPROS
* topic: /scan
* to: /rosplay (http://bojan-desktop:52803/)
* direction: inbound
I have this error in the terminal
lookupTransform base_link to laser ...