Add thread annotation to LogResidualHistograms(). (#492)

master
Wolfgang Hess 2017-08-31 12:26:31 +02:00 committed by GitHub
parent b54ca0cca6
commit 3215035c1c
3 changed files with 4 additions and 5 deletions

View File

@ -82,8 +82,8 @@ void LocalTrajectoryBuilder::ScanMatch(
}
std::unique_ptr<LocalTrajectoryBuilder::InsertionResult>
LocalTrajectoryBuilder::AddRangeData(
const common::Time time, const sensor::RangeData& range_data) {
LocalTrajectoryBuilder::AddRangeData(const common::Time time,
const sensor::RangeData& range_data) {
// Initialize extrapolator now if we do not ever use an IMU.
if (!options_.use_imu_data()) {
InitializeExtrapolator(time);

View File

@ -151,8 +151,7 @@ void SparsePoseGraph::AddImuData(const int trajectory_id,
}
void SparsePoseGraph::AddOdometerData(
int trajectory_id,
const sensor::OdometryData& odometry_data) {
const int trajectory_id, const sensor::OdometryData& odometry_data) {
// TODO(cschuet): Add support for handling OdometryData in the optimization
// problem.
}

View File

@ -166,7 +166,7 @@ class SparsePoseGraph : public mapping::SparsePoseGraph {
// Logs histograms for the translational and rotational residual of scan
// poses.
void LogResidualHistograms();
void LogResidualHistograms() REQUIRES(mutex_);
const mapping::proto::SparsePoseGraphOptions options_;
common::Mutex mutex_;