mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-05 01:07:49 +08:00
Odom: subscribe imu if MSCKF and Okvis type is selected
This commit is contained in:
+1
-1
@@ -343,7 +343,7 @@ void OdometryROS::onInit()
|
|||||||
|
|
||||||
odomStrategy_ = 0;
|
odomStrategy_ = 0;
|
||||||
Parameters::parse(this->parameters(), Parameters::kOdomStrategy(), odomStrategy_);
|
Parameters::parse(this->parameters(), Parameters::kOdomStrategy(), odomStrategy_);
|
||||||
if(waitIMUToinit_ || odomStrategy_ == Odometry::kTypeF2F || odomStrategy_ == Odometry::kTypeF2F)
|
if(waitIMUToinit_ || odomStrategy_ == Odometry::kTypeMSCKF || odomStrategy_ == Odometry::kTypeOkvis)
|
||||||
{
|
{
|
||||||
int queueSize = 10;
|
int queueSize = 10;
|
||||||
pnh.param("queue_size", queueSize, queueSize);
|
pnh.param("queue_size", queueSize, queueSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user