Fixed build error when rtabmap is not built with octomap

This commit is contained in:
matlabbe
2016-09-29 12:28:48 -04:00
parent 5119b3ab90
commit 5167492771
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ CommonDataSubscriber::CommonDataSubscriber() :
if(subscribedToDepth_ || subscribedToStereo_ || subscribedToRGBD_)
{
warningThread_ = new boost::thread(boost::bind(&CommonDataSubscriber::warningLoop, this));
ROS_INFO(subscribedTopicsMsg_.c_str());
ROS_INFO("%s", subscribedTopicsMsg_.c_str());
}
}
+1 -1
View File
@@ -417,7 +417,7 @@ std::map<int, rtabmap::Transform> MapsManager::updateMapCaches(
{
if(updateGrid && gridMaps_.size() < 5)
{
ROS_WARN("Many occupancy grids should be loaded (~%d), this may take a while to update the map(s)...", int(filteredPoses.size()-octomap_->addedNodes().size()));
ROS_WARN("Many occupancy grids should be loaded (~%d), this may take a while to update the map(s)...", int(filteredPoses.size()-gridMaps_.size()));
longUpdate = true;
}
#ifdef WITH_OCTOMAP_ROS
+1 -1
View File
@@ -306,7 +306,7 @@ void OdometryROS::onInit()
void OdometryROS::startWarningThread(const std::string & subscribedTopicsMsg, bool approxSync)
{
warningThread_ = new boost::thread(boost::bind(&OdometryROS::warningLoop, this, subscribedTopicsMsg, approxSync));
NODELET_INFO(subscribedTopicsMsg.c_str());
NODELET_INFO("%s", subscribedTopicsMsg.c_str());
}
void OdometryROS::warningLoop(const std::string & subscribedTopicsMsg, bool approxSync)