Robotics StackExchange | Archived questions

Turtlebot amcl_demo.launch can't load my map

Hi everyone, I am a rookie to implement Turtlebot on ROS. I want to use navigation package to enable Turtlebot.My ROS version is KINETIC.

First, I use realsense zr300 camera to create a map and use mapsever to save the map. I have mymap.pgm and my_map.yaml file.

Second, I launch the amcldemo.launch from Turtlebotgazebo and there are some errors and warnings happen. I tried to implement this

roslaunch turtlebot_bringup minimal.launch
roslaunch turtlebot_navigation amcl_demo.launch map_file:=/tmp/my_map.yaml

or

roslaunch turtlebot_gazebo amcl_demo.launch map_file:=/tmp/my_map.yaml

The error and warning like this:

[mapserver-2] process has died [pid 23511, exit code 255, cmd /opt/ros/kinetic/lib/mapserver/mapndserver /tmp/mymap.yaml _name:=mapserver _log:=/home/wilson/.ros/log/867594de-4a99-11e7-8283-02095c506664/mapserver-2.log]. log file: /home/wilson/.ros/log/867594de-4a99-11e7-8283-02095c506664/map_server-2*.log

and

[ WARN] [1496740896.137411129]: Timed out waiting for transform from base_footprint to map to become available before running costmap, tf error: . canTransform returned after 0.10146 timeout was 0.1.

Can Anyone help me to solve this problem?

Many Thanks

Asked by WilsonTang on 2017-06-06 04:54:40 UTC

Comments

What command did you use to launch amcl?

Asked by MarkyMark2012 on 2017-06-06 05:05:26 UTC

I tried this

roslaunch turtlebot_bringup minimal.launch
roslaunch turtlebot_navigation amcl_demo.launch map_file:=/tmp/my_map.yaml

and

roslaunch turtlebot_gazebo amcl_demo.launch map_file:=/tmp/my_map.yaml

Both have those errors and warnings.

Asked by WilsonTang on 2017-06-06 09:14:59 UTC

Can't see anything obvious at the moment:

1) Ensure roslaunch turtlebot_bringup minimal.launch is fully up and running before launching amcl_demo.launch 2) Try moving both the map files from tmp to your home dir 3) Running the commands with --screen to get a better idea of what is going on/wrong

Asked by MarkyMark2012 on 2017-06-07 01:15:38 UTC

Did you find the solution for the same? I'm also having the same problem! Please help1

Asked by pmuthu2s on 2018-10-21 15:46:30 UTC

Answers