Skip to content

Commit

Permalink
Merge branch 'develop' into devel/alice
Browse files Browse the repository at this point in the history
  • Loading branch information
mfehr committed Dec 6, 2019
2 parents ad4e039 + c1e3f77 commit 8ac214f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
8 changes: 6 additions & 2 deletions algorithms/map-sparsification/src/keyframe-pruning.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,12 @@ size_t selectKeyframesBasedOnHeuristics(
++num_frames_since_last_keyframe;
}

// The last vertex is always a keyframe
insert_keyframe(current_vertex_id);

// Ensure the last vertex is added as a keyframe if it hasn't been selected
// by any heuristics yet.
if (last_keyframe_id != current_vertex_id) {
insert_keyframe(current_vertex_id);
}

return selected_keyframes->size();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ int keyframeMapBasedOnHeuristics(
return common::CommandStatus::kUnknownError;
}

if (keyframe_ids.back() != last_vertex_id) {
keyframe_ids.emplace_back(last_vertex_id);
}

// Optionally, visualize the selected keyframes.
if (plotter != nullptr) {
Expand Down
2 changes: 1 addition & 1 deletion dependencies.rosinstall
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- git:
local-name: maplab_dependencies
uri: https://github.com/ethz-asl/maplab_dependencies.git
version: devel/maplab_node
version: develop
2 changes: 1 addition & 1 deletion map-structure/vi-map/src/pose-graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void PoseGraph::mergeNeighboringEdges<TransformationEdge>(
CHECK_EQ(merge_into_vertex_id, edge_between_vertices.from());
CHECK_EQ(edge_between_vertices.to(), edge_after_next_vertex.from());

const aslam::SensorId& sensor_id = edge_between_vertices.getSensorId();
const aslam::SensorId sensor_id = edge_between_vertices.getSensorId();
CHECK_EQ(sensor_id, edge_after_next_vertex.getSensorId());

const Edge::EdgeType edge_type = edge_between_vertices.getType();
Expand Down

0 comments on commit 8ac214f

Please sign in to comment.