ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ros Map_server could not open map

asked 2014-01-10 23:14:45 -0500

Charel gravatar image

updated 2014-01-10 23:40:57 -0500

Hi,

Could use some help on this one.

This one works on my robot (I copy the map files manually to the /tmp directory before roslaunching it):

 <launch>

      <!--- Run the kinect -->
      <include file="$(find turtlebot_bringup)/kinect.launch" />

      <!-- Run the map server -->
      <node name="map_server" pkg="map_server" type="map_server" args="/tmp/my_map_waalre.yaml" />

      <!--- Run AMCL -->
      <include file="$(find turtlebot_navigation)/config/amcl_turtlebot.launch" />

      <!--- Run Move Base -->
      <include file="$(find turtlebot_navigation)/config/move_base_turtlebot.launch" />

    </launch>

But this one not and comes with error

<launch>

  <!--- Run the kinect -->
  <include file="$(find turtlebot_bringup)/kinect.launch" />

  <!-- Run the map server -->
  <node name="map_server" pkg="map_server" type="map_server" args="/home/turtelbot/fuerte_workspace/sandbox/robo/my_map_waalre.yaml" />

  <!--- Run AMCL -->
  <include file="$(find turtlebot_navigation)/config/amcl_turtlebot.launch" />

  <!--- Run Move Base -->
  <include file="$(find turtlebot_navigation)/config/move_base_turtlebot.launch" />

</launch>

So same file but just in a different directory. I must be overseeing something simple. error it produces:

process[map_server-8]: started with pid [20619] process[amcl-9]: started with pid [20630] process[move_base-10]: started with pid [20679] [map_server-8] process has died [pid 20619, exit code 255, cmd /opt/ros/fuerte/stacks/navigation/map_server/bin/map_server /home/turtelbot/fuerte_workspace/sandbox/robo/my_map_waalre.yaml __name:=map_server __log:=/home/turtelbot/.ros/log/531236a0-7aaf-11e3-8077-94dbc9f717d5/map_server-8.log]. log file: /home/turtelbot/.ros/log/531236a0-7aaf-11e3-8077-94dbc9f717d5/map_server-8*.log

Any clues?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-01-10 23:59:16 -0500

Charel gravatar image

by writing down the question it triggers the mind. Opened the .yaml file and there was a reference of the .pgm file in the /tmp directory. Updated it and now it works.

edit flag offensive delete link more

Comments

i faced the same problem, but i didn't fund in the yaml file any reference to the .pgm file!

bahaa gravatar image bahaa  ( 2014-08-25 08:32:22 -0500 )edit

yes, it has a reference to the .pgm file in the yaml file. Open the yaml file, and you could find these word in the first line::image: /home/...../name.pgm

tanghz gravatar image tanghz  ( 2015-03-04 02:03:39 -0500 )edit

How exactly did you update it?

Elise gravatar image Elise  ( 2015-08-19 13:21:24 -0500 )edit

indeed, open .yaml file with text editor like gedit, in the first line you will find the path name.

Charel gravatar image Charel  ( 2015-08-20 14:48:59 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-01-10 23:14:45 -0500

Seen: 8,846 times

Last updated: Jan 10 '14