From 0bc6f8f8e6a0eebec6658286dfa6490a37159c47 Mon Sep 17 00:00:00 2001 From: Timothy Wiley Date: Thu, 27 Jun 2013 10:48:28 +0200 Subject: [PATCH] Lookup the right config --- crosbot_ui/src/nodes/geo_logger.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crosbot_ui/src/nodes/geo_logger.cpp b/crosbot_ui/src/nodes/geo_logger.cpp index d55f564..7110efe 100644 --- a/crosbot_ui/src/nodes/geo_logger.cpp +++ b/crosbot_ui/src/nodes/geo_logger.cpp @@ -52,8 +52,11 @@ public: gridSub = nh.subscribe("map", 1, &GeoLogger::callbackOccupancy, this); histSub = nh.subscribe("history", 1, &GeoLogger::callbackHistory, this); snapSrv = nh.serviceClient< crosbot_map::ListSnaps >("/snaps/list", true); + + // Config ros::NodeHandle nhPriv("~"); - nh.param("dir", fileLoc, fileLoc); + nhPriv.param("dir", fileLoc, fileLoc); + if (*(fileLoc.rbegin()) != '/') fileLoc.append("/"); } QImage *getGeoTiffImage(nav_msgs::OccupancyGridConstPtr& map, const std::string& title, nav_msgs::PathConstPtr& history, const std::vector< crosbot_map::SnapMsg >& snaps, std::string& geoData, std::string snapDetails) { -- GitLab