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

Ros + openstreetmap (osm cartography package)

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

lilouch gravatar image

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

Hi,

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

The package is here: http://wiki.ros.org/osm_cartography

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";
if(client.call(srv))
{
     ROS_INFO("connected");
}
else
{
     ROS_ERROR("failed");

}

return 0;

}

Thanks you so much in advance.

edit retag flag offensive close merge delete

Comments

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
0

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

Stats

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

Seen: 2,123 times

Last updated: Aug 07 '15