mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
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:
@@ -416,16 +416,21 @@ void MapCloudDisplay::downloadMap()
|
||||
getMapSrv.request.global = true;
|
||||
getMapSrv.request.optimized = true;
|
||||
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
|
||||
{
|
||||
this->reset();
|
||||
processMapData(getMapSrv.response.data);
|
||||
}
|
||||
download_map_->blockSignals(true);
|
||||
download_map_->setBool(false);
|
||||
download_map_->blockSignals(false);
|
||||
}
|
||||
|
||||
void MapCloudDisplay::causeRetransform()
|
||||
|
||||
Reference in New Issue
Block a user