Skip to content

Commit cfd5c81

Browse files
committed
Mention why autoinit should be 0
1 parent 486a468 commit cfd5c81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rosbag-data-source.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ bool RosbagDataProvider::parseRosbag(const std::string& bag_path,
7474
topics.push_back(right_imgs_topic);
7575
topics.push_back(imu_topic);
7676
if (!gt_odom_topic.empty()) {
77-
CHECK(pipeline_params_.backend_params_->autoInitialize_ == 0);
77+
CHECK(pipeline_params_.backend_params_->autoInitialize_ == 0)
78+
<< "Provided a gt_odom_topic; but autoInitialize is set to 0, meaning "
79+
"no ground-truth initialization will be done...";
7880
topics.push_back(gt_odom_topic);
7981
} else {
8082
CHECK(pipeline_params_.backend_params_->autoInitialize_ != 0);

0 commit comments

Comments
 (0)