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

map_server missing a '#!' declaration at the top

asked 2013-03-15 08:32:08 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi everyone. My launch file tries to run map_server, while got

Unable to launch [map_server-3]. 
If it is a script, you may be missing a '#!' declaration at the top.

No navigation folder in my ./ros/fuerte/stacks. So I downloaded the map_server package and "rosmake"ed it.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-03-17 20:06:27 -0500

According to the map_server wiki page, it looks like map_server should be a C++ binary executable.

I agree that installing the binary package as @joq suggested should be the easiest fix. But you should also be able to download and compile from source, as you've shown above. If you're installing from source, make sure you also have any dependencies of the "map_server" package installes as well. "rosmake" should give errors if any dependencies are missing. This will be handled automatically if you instal from binary .deb packages.

You can try the following tests, to see what might be missing/broken:

  1. rospack find map_server - should list the package path
  2. rospack depends map_server - list all required dependencies
  3. rosrun map_server map_server test_map.yaml - manually run map_server
  4. roswtf myLauncher.launch - check your launch file for potential errors

Hopefully, one of those will help figure out your issue!

edit flag offensive delete link more

Comments

You are right about map_server being a node. I was confused by the roslaunch message.

joq gravatar image joq  ( 2013-03-18 06:10:07 -0500 )edit
0

answered 2013-03-15 11:58:43 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Looks like you tried to execute the launch file in your shell. Run it with roslaunch, instead.

Did you sudo apt-get install ros-fuerte-navigation?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-15 08:32:08 -0500

Seen: 5,900 times

Last updated: Mar 18 '13