mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
Updated warning message when not receiving data
This commit is contained in:
@@ -370,10 +370,12 @@ void CommonDataSubscriber::warningLoop()
|
|||||||
{
|
{
|
||||||
ROS_WARN("%s: Did not receive data since 5 seconds! Make sure the input topics are "
|
ROS_WARN("%s: Did not receive data since 5 seconds! Make sure the input topics are "
|
||||||
"published (\"$ rostopic hz my_topic\") and the timestamps in their "
|
"published (\"$ rostopic hz my_topic\") and the timestamps in their "
|
||||||
"header are set. %s%s",
|
"header are set. If topics are coming from different computers, make sure "
|
||||||
|
"the clocks of the computers are synchronized (\"ntpdate\"). %s%s",
|
||||||
ros::this_node::getName().c_str(),
|
ros::this_node::getName().c_str(),
|
||||||
approxSync_?"":"Parameter \"approx_sync\" is false, which means that input "
|
approxSync_?
|
||||||
"topics should have all the exact timestamp for the callback to be called.",
|
uFormat("If topics are not published at the same rate, you could increase \"queue_size\" parameter (current=%d).", queueSize_).c_str():
|
||||||
|
"Parameter \"approx_sync\" is false, which means that input topics should have all the exact timestamp for the callback to be called.",
|
||||||
subscribedTopicsMsg_.c_str());
|
subscribedTopicsMsg_.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user