Miscellaneous: rename odometer->odometry (#665)
Since we're adding `sensor::OdometryData`, I think that the function should be called `AddOdometryData`.master
parent
5496cbdc0c
commit
4b342eddd0
|
@ -71,8 +71,8 @@ class GlobalTrajectoryBuilder
|
|||
|
||||
void AddSensorData(const sensor::OdometryData& odometry_data) override {
|
||||
CHECK(odometry_data.pose.IsValid()) << odometry_data.pose;
|
||||
local_trajectory_builder_.AddOdometerData(odometry_data);
|
||||
sparse_pose_graph_->AddOdometerData(trajectory_id_, odometry_data);
|
||||
local_trajectory_builder_.AddOdometryData(odometry_data);
|
||||
sparse_pose_graph_->AddOdometryData(trajectory_id_, odometry_data);
|
||||
}
|
||||
|
||||
void AddSensorData(
|
||||
|
|
|
@ -88,7 +88,7 @@ class SparsePoseGraph {
|
|||
const sensor::ImuData& imu_data) = 0;
|
||||
|
||||
// Inserts an odometry measurement.
|
||||
virtual void AddOdometerData(int trajectory_id,
|
||||
virtual void AddOdometryData(int trajectory_id,
|
||||
const sensor::OdometryData& odometry_data) = 0;
|
||||
|
||||
// Finishes the given trajectory.
|
||||
|
|
|
@ -212,7 +212,7 @@ void LocalTrajectoryBuilder::AddImuData(const sensor::ImuData& imu_data) {
|
|||
extrapolator_->AddImuData(imu_data);
|
||||
}
|
||||
|
||||
void LocalTrajectoryBuilder::AddOdometerData(
|
||||
void LocalTrajectoryBuilder::AddOdometryData(
|
||||
const sensor::OdometryData& odometry_data) {
|
||||
if (extrapolator_ == nullptr) {
|
||||
// Until we've initialized the extrapolator we cannot add odometry data.
|
||||
|
|
|
@ -68,7 +68,7 @@ class LocalTrajectoryBuilder {
|
|||
std::unique_ptr<MatchingResult> AddRangeData(
|
||||
common::Time, const sensor::TimedRangeData& range_data);
|
||||
void AddImuData(const sensor::ImuData& imu_data);
|
||||
void AddOdometerData(const sensor::OdometryData& odometry_data);
|
||||
void AddOdometryData(const sensor::OdometryData& odometry_data);
|
||||
|
||||
private:
|
||||
std::unique_ptr<MatchingResult> AddAccumulatedRangeData(
|
||||
|
|
|
@ -160,11 +160,11 @@ void SparsePoseGraph::AddImuData(const int trajectory_id,
|
|||
});
|
||||
}
|
||||
|
||||
void SparsePoseGraph::AddOdometerData(
|
||||
void SparsePoseGraph::AddOdometryData(
|
||||
const int trajectory_id, const sensor::OdometryData& odometry_data) {
|
||||
common::MutexLocker locker(&mutex_);
|
||||
AddWorkItem([=]() REQUIRES(mutex_) {
|
||||
optimization_problem_.AddOdometerData(trajectory_id, odometry_data);
|
||||
optimization_problem_.AddOdometryData(trajectory_id, odometry_data);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ class SparsePoseGraph : public mapping::SparsePoseGraph {
|
|||
|
||||
void AddImuData(int trajectory_id, const sensor::ImuData& imu_data) override
|
||||
EXCLUDES(mutex_);
|
||||
void AddOdometerData(int trajectory_id,
|
||||
void AddOdometryData(int trajectory_id,
|
||||
const sensor::OdometryData& odometry_data) override
|
||||
EXCLUDES(mutex_);
|
||||
void AddFixedFramePoseData(
|
||||
|
|
|
@ -66,7 +66,7 @@ void OptimizationProblem::AddImuData(const int trajectory_id,
|
|||
imu_data_.Append(trajectory_id, imu_data);
|
||||
}
|
||||
|
||||
void OptimizationProblem::AddOdometerData(
|
||||
void OptimizationProblem::AddOdometryData(
|
||||
const int trajectory_id, const sensor::OdometryData& odometry_data) {
|
||||
odometry_data_.Append(trajectory_id, odometry_data);
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ class OptimizationProblem {
|
|||
OptimizationProblem& operator=(const OptimizationProblem&) = delete;
|
||||
|
||||
void AddImuData(int trajectory_id, const sensor::ImuData& imu_data);
|
||||
void AddOdometerData(int trajectory_id,
|
||||
void AddOdometryData(int trajectory_id,
|
||||
const sensor::OdometryData& odometry_data);
|
||||
void AddTrajectoryNode(int trajectory_id, common::Time time,
|
||||
const transform::Rigid2d& initial_pose,
|
||||
|
|
|
@ -175,7 +175,7 @@ LocalTrajectoryBuilder::AddAccumulatedRangeData(
|
|||
std::move(insertion_result)});
|
||||
}
|
||||
|
||||
void LocalTrajectoryBuilder::AddOdometerData(
|
||||
void LocalTrajectoryBuilder::AddOdometryData(
|
||||
const sensor::OdometryData& odometry_data) {
|
||||
if (extrapolator_ == nullptr) {
|
||||
// Until we've initialized the extrapolator we cannot add odometry data.
|
||||
|
|
|
@ -64,7 +64,7 @@ class LocalTrajectoryBuilder {
|
|||
// otherwise 'nullptr'.
|
||||
std::unique_ptr<MatchingResult> AddRangeData(
|
||||
common::Time time, const sensor::TimedRangeData& range_data);
|
||||
void AddOdometerData(const sensor::OdometryData& odometry_data);
|
||||
void AddOdometryData(const sensor::OdometryData& odometry_data);
|
||||
const mapping::PoseEstimate& pose_estimate() const;
|
||||
|
||||
private:
|
||||
|
|
|
@ -157,11 +157,11 @@ void SparsePoseGraph::AddImuData(const int trajectory_id,
|
|||
});
|
||||
}
|
||||
|
||||
void SparsePoseGraph::AddOdometerData(
|
||||
void SparsePoseGraph::AddOdometryData(
|
||||
const int trajectory_id, const sensor::OdometryData& odometry_data) {
|
||||
common::MutexLocker locker(&mutex_);
|
||||
AddWorkItem([=]() REQUIRES(mutex_) {
|
||||
optimization_problem_.AddOdometerData(trajectory_id, odometry_data);
|
||||
optimization_problem_.AddOdometryData(trajectory_id, odometry_data);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ class SparsePoseGraph : public mapping::SparsePoseGraph {
|
|||
|
||||
void AddImuData(int trajectory_id, const sensor::ImuData& imu_data) override
|
||||
EXCLUDES(mutex_);
|
||||
void AddOdometerData(int trajectory_id,
|
||||
void AddOdometryData(int trajectory_id,
|
||||
const sensor::OdometryData& odometry_data) override
|
||||
EXCLUDES(mutex_);
|
||||
void AddFixedFramePoseData(
|
||||
|
|
|
@ -86,7 +86,7 @@ void OptimizationProblem::AddImuData(const int trajectory_id,
|
|||
imu_data_.Append(trajectory_id, imu_data);
|
||||
}
|
||||
|
||||
void OptimizationProblem::AddOdometerData(
|
||||
void OptimizationProblem::AddOdometryData(
|
||||
const int trajectory_id, const sensor::OdometryData& odometry_data) {
|
||||
odometry_data_.Append(trajectory_id, odometry_data);
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ class OptimizationProblem {
|
|||
OptimizationProblem& operator=(const OptimizationProblem&) = delete;
|
||||
|
||||
void AddImuData(int trajectory_id, const sensor::ImuData& imu_data);
|
||||
void AddOdometerData(int trajectory_id,
|
||||
void AddOdometryData(int trajectory_id,
|
||||
const sensor::OdometryData& odometry_data);
|
||||
void AddFixedFramePoseData(
|
||||
int trajectory_id,
|
||||
|
|
Loading…
Reference in New Issue