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

chris's profile - activity

2015-11-23 13:03:45 -0500 received badge  Taxonomist
2015-10-07 11:00:18 -0500 received badge  Student (source)
2015-10-07 11:00:12 -0500 marked best answer How to use geographic_msgs?

Hi,

I'm trying to write a little client to access osm maps. What I did so far is:

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

srv.request.url = "http://openstreetmap.org/node/123456";
if(client.call(srv))
{
     ROS_INFO("connected");
}
else
{
     ROS_ERROR("failed");
}

If I run the programm I always get "failed" as an output. Could anyone tell me how to connect to the maps correctly?

Thanks in advance, Chris

2015-10-07 10:59:15 -0500 received badge  Famous Question (source)
2015-01-28 05:36:04 -0500 received badge  Notable Question (source)
2014-09-12 14:08:32 -0500 received badge  Scholar (source)
2014-09-09 09:55:59 -0500 commented answer How to use geographic_msgs?

Thanks for your help

2014-09-09 07:17:22 -0500 received badge  Popular Question (source)
2014-09-09 04:11:50 -0500 commented answer How to use geographic_msgs?

Do you know how the server in this package is called and how I can run it?

2014-09-09 02:44:00 -0500 commented answer How to use geographic_msgs?

I downloaded a part of the map previously and used:

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

But this is not working either.

2014-09-09 01:34:08 -0500 commented question How to use geographic_msgs?

Unfortunately the service seems not to be running. I tried to run it with rosrun, but there was no executable found. I compiled the Package with catkin_make before and I had no error as a result. In addition the Package seems to be a Metapackage. So how could I start the service?