parent
660eb341ff
commit
95f0d013c6
|
@ -93,9 +93,9 @@ proto::SparsePoseGraph SparsePoseGraph::ToProto() {
|
|||
constraint.pose.sqrt_Lambda_ij;
|
||||
|
||||
constraint_proto->mutable_submap_id()->set_trajectory_id(
|
||||
constraint.i.trajectory_id);
|
||||
constraint.submap_id.trajectory_id);
|
||||
constraint_proto->mutable_submap_id()->set_submap_index(
|
||||
constraint.i.submap_index);
|
||||
constraint.submap_id.submap_index);
|
||||
|
||||
constraint_proto->mutable_scan_id()->set_trajectory_id(
|
||||
grouped_node_indices[constraint.j].first);
|
||||
|
|
|
@ -58,9 +58,7 @@ class SparsePoseGraph {
|
|||
Eigen::Matrix<double, 6, 6> sqrt_Lambda_ij;
|
||||
};
|
||||
|
||||
// TODO(hrapp): Rename to 'submap_id' and mention that the paper calls this
|
||||
// 'i'.
|
||||
mapping::SubmapId i;
|
||||
mapping::SubmapId submap_id; // 'i' in the paper.
|
||||
|
||||
// Scan index.
|
||||
int j;
|
||||
|
|
|
@ -139,8 +139,8 @@ void OptimizationProblem::Solve(const std::vector<Constraint>& constraints) {
|
|||
constraint.tag == Constraint::INTER_SUBMAP
|
||||
? new ceres::HuberLoss(options_.huber_scale())
|
||||
: nullptr,
|
||||
C_submaps.at(constraint.i.trajectory_id)
|
||||
.at(constraint.i.submap_index)
|
||||
C_submaps.at(constraint.submap_id.trajectory_id)
|
||||
.at(constraint.submap_id.submap_index)
|
||||
.data(),
|
||||
C_point_clouds[constraint.j].data());
|
||||
}
|
||||
|
|
|
@ -175,11 +175,11 @@ void OptimizationProblem::Solve(const std::vector<Constraint>& constraints) {
|
|||
constraint.tag == Constraint::INTER_SUBMAP
|
||||
? new ceres::HuberLoss(options_.huber_scale())
|
||||
: nullptr,
|
||||
C_submaps.at(constraint.i.trajectory_id)
|
||||
.at(constraint.i.submap_index)
|
||||
C_submaps.at(constraint.submap_id.trajectory_id)
|
||||
.at(constraint.submap_id.submap_index)
|
||||
.rotation(),
|
||||
C_submaps.at(constraint.i.trajectory_id)
|
||||
.at(constraint.i.submap_index)
|
||||
C_submaps.at(constraint.submap_id.trajectory_id)
|
||||
.at(constraint.submap_id.submap_index)
|
||||
.translation(),
|
||||
C_point_clouds[constraint.j].rotation(),
|
||||
C_point_clouds[constraint.j].translation());
|
||||
|
|
Loading…
Reference in New Issue