I'm trying to run AMCL for auto navigation with the robot Pepper. And I used the map that built by TurtleBot(gmapping). the result is shown as follow picture
:
and the frame tree file is here It can load the map, and can set the initial position by 2D Postion estimate but when I set the 2D Navigation Goal, the robot bring up node out comes the message:
Cannot transform from map to base_footprint
My navigation launch file are follow:
pepper_navagation.launch
<launch>
<!-- Set the name of the map yaml file: can be overridden on the command line. -->
<arg name="map" default="/home/axmros/tmp/office0614.yaml" />
<!-- Run the map server with the desired map -->
<node name="map_server" pkg="map_server" type="map_server" args="$(arg map)"/>
<include file="$(find pepper_navigation)/launch/includes/amcl.launch.xml"/>
</launch>
amcl.launch.xml
<launch>
<arg name="use_map_topic" default="1"/>
<arg name="scan_topic" default="/pepper_robot/laser"/>
<arg name="odom_frame_id" default="odom"/>
<arg name="base_frame_id" default="base_footprint"/>
<arg name="global_frame_id" default="map"/>
<node pkg="amcl" type="amcl" name="amcl">
<param name="use_map_topic" value="$(arg use_map_topic)"/>
<!-- Publish scans from best pose at a max of 10 Hz -->
<param name="gui_publish_rate" value="0.5"/>
<param name="transform_tolerance" value="0.02"/>
<param name="laser_max_beams" value="61"/>
<param name="laser_max_range" value="5.0"/>
<param name="min_particles" value="1000 * 4"/>
<param name="max_particles" value="5000 * 4"/>
<param name="odom_model_type" value="omni"/>
<param name="resample_interval" value="8"/>
<param name="odom_alpha1" value="1.1"/>
<param name="odom_alpha2" value="1.1"/>
<param name="odom_alpha3" value="10.0"/>
<param name="odom_alpha4" value="0.1"/>
<param name="odom_alpha5" value="0.1"/>
<param name="laser_model_type" value="likelihood_field"/>
<param name="laser_likelihood_max_dist" value="4.0"/>
<param name="update_min_d" value="0.05"/>
<param name="update_min_a" value="0.02"/>
<param name="recovery_alpha_slow" value="0.0"/>
<param name="recovery_alpha_fast" value="0.0"/>
<param name="laser_z_rand" value="0.05"/>
<param name="laser_z_hit" value="0.95"/>
<param name="laser_sigma_hit" value="0.2"/>
<param name="laser_z_short" value="0.01"/>
<param name="laser_z_max" value="0.01"/>
<param name="odom_frame_id" value="$(arg odom_frame_id)"/>
<param name="base_frame_id" value="$(arg base_frame_id)"/>
<param name="global_frame_id" value="$(arg global_frame_id)"/>
<remap from="scan" to="$(arg scan_topic)"/>
</node>
</launch>
and the robot can't move, if I set the global frame id ad base_link or base_footprint, the robot can move but the odom can not match with the map.
According to the messages, it seems that the tf has not been configured correctly, but I think the frame tree is all right.
So what should I do to fix the problem?
--
You received this message because you are subscribed to the Google Groups "ROS Sig Aldebaran" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-aldebaran+unsubscribe@googlegroups.com.
To post to this group, send email to ros-sig-aldebaran@googlegroups.com.
Visit this group at https://groups.google.com/group/ros-sig-aldebaran.
To view this discussion on the web visit https://groups.google.com/d/msgid/ros-sig-aldebaran/9e26aef0-c3ec-49b9-815a-b02caf5aece3%40googlegroups.com.