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 imageZargol ( 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,386 times

Last updated: Aug 07 '15