Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 601

How to use GetMap-Service by gmapping

$
0
0
I'm using gmapping to create a map. To this point everything works fine. Now I want to call the GetMap-Service to receive the map for further investigation: #include ros::ServiceClient client = n.serviceClient("map"); nav_msgs::GetMap srv; if (client.call(srv)) { ROS_INFO("Service GetMap succeeded."); } else { ROS_ERROR("Service GetMap failed."); return 1; } But when running this node I always get "Service GetMap failed." I added gmapping to "find packages" in CMakefile and to build & runtime dependencies in package xml. What's my fault?

Viewing all articles
Browse latest Browse all 601

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>