rviz plugin: MapCloudDisplay looking for rtabmap/get_map service name by default, also disabled qt signal when resting dowloadMap property (causing double downloads of the map)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@1476 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-07-07 15:12:57 +00:00
parent f1e64371ae
commit 9105e8eb06
+7 -2
View File
@@ -416,16 +416,21 @@ void MapCloudDisplay::downloadMap()
getMapSrv.request.global = true; getMapSrv.request.global = true;
getMapSrv.request.optimized = true; getMapSrv.request.optimized = true;
getMapSrv.request.graphOnly = false; getMapSrv.request.graphOnly = false;
if(!ros::service::call("get_map", getMapSrv)) if(!ros::service::call("rtabmap/get_map", getMapSrv))
{ {
ROS_WARN("MapCloudDisplay: Can't call \"get_map\" service"); ROS_ERROR("MapCloudDisplay: Can't call \"rtabmap/get_map\" service. "
"Tip: if rtabmap node is in not in rtabmap namespace, you can remap the service "
"to \"get_map\" in the launch "
"file like: <remap from=\"rtabmap/get_map\" to=\"get_map\"/>.");
} }
else else
{ {
this->reset(); this->reset();
processMapData(getMapSrv.response.data); processMapData(getMapSrv.response.data);
} }
download_map_->blockSignals(true);
download_map_->setBool(false); download_map_->setBool(false);
download_map_->blockSignals(false);
} }
void MapCloudDisplay::causeRetransform() void MapCloudDisplay::causeRetransform()