mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
inter_odom callback queue_size set to 100
This commit is contained in:
+2
-2
@@ -524,7 +524,7 @@ void CoreWrapper::onInit()
|
|||||||
if(interOdomInfo)
|
if(interOdomInfo)
|
||||||
{
|
{
|
||||||
NODELET_INFO("Subscribe to inter odom + info messages");
|
NODELET_INFO("Subscribe to inter odom + info messages");
|
||||||
interOdomSync_ = new message_filters::Synchronizer<MyExactInterOdomSyncPolicy>(MyExactInterOdomSyncPolicy(queueSize_), interOdomSyncSub_, interOdomInfoSyncSub_);
|
interOdomSync_ = new message_filters::Synchronizer<MyExactInterOdomSyncPolicy>(MyExactInterOdomSyncPolicy(100), interOdomSyncSub_, interOdomInfoSyncSub_);
|
||||||
interOdomSync_->registerCallback(boost::bind(&CoreWrapper::interOdomInfoCallback, this, _1, _2));
|
interOdomSync_->registerCallback(boost::bind(&CoreWrapper::interOdomInfoCallback, this, _1, _2));
|
||||||
interOdomSyncSub_.subscribe(nh, "inter_odom", 1);
|
interOdomSyncSub_.subscribe(nh, "inter_odom", 1);
|
||||||
interOdomInfoSyncSub_.subscribe(nh, "inter_odom_info", 1);
|
interOdomInfoSyncSub_.subscribe(nh, "inter_odom_info", 1);
|
||||||
@@ -532,7 +532,7 @@ void CoreWrapper::onInit()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
NODELET_INFO("Subscribe to inter odom messages");
|
NODELET_INFO("Subscribe to inter odom messages");
|
||||||
interOdomSub_ = nh.subscribe("inter_odom", 1, &CoreWrapper::interOdomCallback, this);
|
interOdomSub_ = nh.subscribe("inter_odom", 100, &CoreWrapper::interOdomCallback, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user