Skip to content

Commit

Permalink
Removed a few unnecessary copies caused by aslam return values not be…
Browse files Browse the repository at this point in the history
…ing respected
  • Loading branch information
smauq committed Mar 28, 2023
1 parent d9b0b23 commit e9463bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void LoopDetectorNode::convertFrameToProjectedImageOnlyUsingProvidedLandmarkIds(
static_cast<int>(observed_landmark_ids.size()),
frame.getDescriptorsOfType(feature_type_).cols());

const Eigen::Matrix2Xd& original_measurements =
const Eigen::Block<const Eigen::Matrix2Xd> original_measurements =
frame.getKeypointMeasurementsOfType(feature_type_);
const aslam::VisualFrame::DescriptorsT& original_descriptors =
frame.getDescriptorsOfType(feature_type_);
Expand Down
4 changes: 2 additions & 2 deletions algorithms/online-map-builders/src/stream-map-builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1081,12 +1081,12 @@ void StreamMapBuilder::notifyExternalFeaturesMeasurementBuffer() {
if (!queries_.getClosestVertexIdByTimestamp(
timestamp_ns_measurement, external_features_sync_tolerance_ns_,
&closest_vertex_id, &delta_ns)) {
/*LOG(WARNING)
LOG(WARNING)
<< "[StreamMapBuilder] Could not attach external features "
<< "measurement, because the timestamp is not close enough to "
<< "a vertex in the pose graph (delta = " << delta_ns << "ns > "
<< external_features_sync_tolerance_ns_
<< "ns)! timestamp_ns: " << timestamp_ns_measurement << ".";*/
<< "ns)! timestamp_ns: " << timestamp_ns_measurement << ".";
continue;
}

Expand Down

0 comments on commit e9463bd

Please sign in to comment.