Fix Clang warnings. (#1292)
parent
89f0c45de8
commit
05a8314a23
|
@ -53,8 +53,6 @@ constexpr double kTimeStep = 0.1; // Seconds.
|
||||||
constexpr double kTravelDistance = 1.2; // Meters.
|
constexpr double kTravelDistance = 1.2; // Meters.
|
||||||
|
|
||||||
constexpr char kSerializationHeaderProtoString[] = "format_version: 1";
|
constexpr char kSerializationHeaderProtoString[] = "format_version: 1";
|
||||||
constexpr char kUnsupportedSerializationHeaderProtoString[] =
|
|
||||||
"format_version: 123";
|
|
||||||
constexpr char kPoseGraphProtoString[] = R"(pose_graph {
|
constexpr char kPoseGraphProtoString[] = R"(pose_graph {
|
||||||
trajectory: {
|
trajectory: {
|
||||||
trajectory_id: 0
|
trajectory_id: 0
|
||||||
|
|
|
@ -102,7 +102,6 @@ class ActiveSubmaps3D {
|
||||||
void AddSubmap(const transform::Rigid3d& local_submap_pose);
|
void AddSubmap(const transform::Rigid3d& local_submap_pose);
|
||||||
|
|
||||||
const proto::SubmapsOptions3D options_;
|
const proto::SubmapsOptions3D options_;
|
||||||
int matching_submap_index_ = 0;
|
|
||||||
std::vector<std::shared_ptr<Submap3D>> submaps_;
|
std::vector<std::shared_ptr<Submap3D>> submaps_;
|
||||||
RangeDataInserter3D range_data_inserter_;
|
RangeDataInserter3D range_data_inserter_;
|
||||||
};
|
};
|
||||||
|
|
|
@ -546,7 +546,7 @@ void PoseGraph3D::WaitForAllComputations() {
|
||||||
|
|
||||||
// Now wait for any pending constraint computations to finish.
|
// Now wait for any pending constraint computations to finish.
|
||||||
common::MutexLocker locker(&mutex_);
|
common::MutexLocker locker(&mutex_);
|
||||||
bool notification GUARDED_BY(mutex_) = false;
|
bool notification = false;
|
||||||
constraint_builder_.WhenDone(
|
constraint_builder_.WhenDone(
|
||||||
[this,
|
[this,
|
||||||
¬ification](const constraints::ConstraintBuilder3D::Result& result)
|
¬ification](const constraints::ConstraintBuilder3D::Result& result)
|
||||||
|
|
Loading…
Reference in New Issue