Robotics StackExchange | Archived questions

get global position with hector mapping and amcl and premade made

hello I'm currently trying to get amcl with hector mapping to work because i have no odometry
hector mapping is working so far this is my launch file

<node pkg="hector_mapping" type="hector_mapping" name="hector_mapping" output="screen">

    <param name="base_frame" value="base_link"/>
    <param name="odom_frame" value="base_link"/>
    <param name="pub_map_odom_transform" value="true"/>
<param name="pub_odometry" value="true"/>
    <param name="scan_subscriber_queue_size" value="25"/>
    <!-- Map size / start point -->
    <param name="map_resolution" value="0.050"/>
    <param name="map_size" value="2048"/>
    <param name="map_start_x" value="0.5"/>
    <param name="map_start_y" value="0.5" />
    <param name="map_multi_res_levels" value="2" />
</node>

<include file="$(find hector_geotiff)/launch/geotiff_mapper.launch">
    <arg name="map_file_path" value="/home/megatron/catkin_ws"/>  </include>

<node pkg="tf" type="static_transform_publisher" name="map_nav_broadcaster" args="0 0 0 0 0 0 base_link laser 100"/>

amcl is also sucessfully receiving the map but after that it fails. Im getting

No laser scan received (and thus no pose updates have been published) for 1446636766.673503 seconds.  Verify that data is being published on the /scan topic.

and

MessageFilter [target=odom ]: Dropped 100.00% of messages so far. Please turn the [ros.amcl.message_notifier] rosconsole logger to DEBUG for more information.

this is my rostopic list:
/clock
/initialpose
/map
/mapmetadata
/poseupdate
/rosout
/rosout
agg
/scan
/scanmatchodom
/slam
cloud
/slamoutpose
/syscommand
/tf
/tf_static

all topics are publishing also the /scan topic!

Asked by PizzaTime on 2015-11-04 11:43:03 UTC

Comments

Can you post your amcl launch file? Also your tf tree would be useful, maybe you're missing some connection there

Asked by S.Prieto on 2015-11-05 03:12:15 UTC

Hello, I am facing the same problem, did you fix it?

Asked by Miguel_Arriscado on 2020-02-21 12:08:53 UTC

Answers