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

Ros + openstreetmap (osm cartography package)

asked 2015-06-04 02:29:38 -0500

lilouch gravatar image

updated 2015-06-04 02:30:08 -0500


Is anyone knows how to work with ROS and Open Street Map ? I have ROS indigo.

The package is here:

I would like to have something like on this picture: image description

My code for now is the following but doesn't work:

int main(int argc, char **argv)

ros::init(argc, argv, "osm");
ros::NodeHandle n;
ros::ServiceClient client = n.serviceClient<geographic_msgs::GetGeographicMap>("geographic_msgs");
geographic_msgs::GetGeographicMap srv;

srv.request.url = "package://home/user/map.osm";


return 0;


Thanks you so much in advance.

edit retag flag offensive close merge delete


after lunching the file, it does not show any picture. Should I run RViz and then what should add in Rviz?

Zargol gravatar image Zargol  ( 2015-11-23 17:51:16 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-08-07 08:06:27 -0500

Chris L gravatar image

That package comes with a demo launch file (source) which starts the visualization, and you could start from there.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-06-04 02:29:38 -0500

Seen: 2,123 times

Last updated: Aug 07 '15