mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
Updated warnings for parameters that are deprecated
This commit is contained in:
+3
-3
@@ -121,7 +121,7 @@ CoreWrapper::CoreWrapper(bool deleteDbOnStart) :
|
|||||||
|
|
||||||
// ROS related parameters (private)
|
// ROS related parameters (private)
|
||||||
pnh.param("subscribe_depth", subscribeDepth, subscribeDepth);
|
pnh.param("subscribe_depth", subscribeDepth, subscribeDepth);
|
||||||
if(pnh.getParam("subscribe_laserScan", subscribeScan2d))
|
if(pnh.getParam("subscribe_laserScan", subscribeScan2d) && subscribeScan2d)
|
||||||
{
|
{
|
||||||
ROS_WARN("rtabmap: \"subscribe_laserScan\" parameter is deprecated, use \"subscribe_scan\" instead. The scan topic is still subscribed.");
|
ROS_WARN("rtabmap: \"subscribe_laserScan\" parameter is deprecated, use \"subscribe_scan\" instead. The scan topic is still subscribed.");
|
||||||
}
|
}
|
||||||
@@ -286,12 +286,12 @@ CoreWrapper::CoreWrapper(bool deleteDbOnStart) :
|
|||||||
{
|
{
|
||||||
if(iter->second.second.empty())
|
if(iter->second.second.empty())
|
||||||
{
|
{
|
||||||
ROS_WARN("Rtabmap: Parameter \"%s\" doesn't exist anymore!",
|
ROS_ERROR("Rtabmap: Parameter \"%s\" doesn't exist anymore!",
|
||||||
iter->first.c_str());
|
iter->first.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ROS_WARN("Rtabmap: Parameter \"%s\" doesn't exist anymore! You may look at this similar parameter: \"%s\"",
|
ROS_ERROR("Rtabmap: Parameter \"%s\" doesn't exist anymore! You may look at this similar parameter: \"%s\"",
|
||||||
iter->first.c_str(), iter->second.second.c_str());
|
iter->first.c_str(), iter->second.second.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -128,7 +128,7 @@ GuiWrapper::GuiWrapper(int & argc, char** argv) :
|
|||||||
pnh.param("frame_id", frameId_, frameId_);
|
pnh.param("frame_id", frameId_, frameId_);
|
||||||
pnh.param("odom_frame_id", odomFrameId_, odomFrameId_); // set to use odom from TF
|
pnh.param("odom_frame_id", odomFrameId_, odomFrameId_); // set to use odom from TF
|
||||||
pnh.param("subscribe_depth", subscribeDepth, subscribeDepth);
|
pnh.param("subscribe_depth", subscribeDepth, subscribeDepth);
|
||||||
if(pnh.getParam("subscribe_laserScan", subscribeLaserScan2d))
|
if(pnh.getParam("subscribe_laserScan", subscribeLaserScan2d) && subscribeLaserScan2d)
|
||||||
{
|
{
|
||||||
ROS_WARN("rtabmapviz: \"subscribe_laserScan\" parameter is deprecated, use \"subscribe_scan\" instead. The scan topic is still subscribed.");
|
ROS_WARN("rtabmapviz: \"subscribe_laserScan\" parameter is deprecated, use \"subscribe_scan\" instead. The scan topic is still subscribed.");
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -201,12 +201,12 @@ OdometryROS::OdometryROS(int argc, char * argv[], bool stereo) :
|
|||||||
{
|
{
|
||||||
if(iter->second.second.empty())
|
if(iter->second.second.empty())
|
||||||
{
|
{
|
||||||
ROS_WARN("Odometry: Parameter \"%s\" doesn't exist anymore!",
|
ROS_ERROR("Odometry: Parameter \"%s\" doesn't exist anymore!",
|
||||||
iter->first.c_str());
|
iter->first.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ROS_WARN("Odometry: Parameter \"%s\" doesn't exist anymore! You may look at this similar parameter: \"%s\"",
|
ROS_ERROR("Odometry: Parameter \"%s\" doesn't exist anymore! You may look at this similar parameter: \"%s\"",
|
||||||
iter->first.c_str(), iter->second.second.c_str());
|
iter->first.c_str(), iter->second.second.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user