Skip the Collator for the landmark data. (#1184)
parent
5bda2a567c
commit
4ef38497a9
|
@ -38,6 +38,8 @@ CollatedTrajectoryBuilder::CollatedTrajectoryBuilder(
|
||||||
last_logging_time_(std::chrono::steady_clock::now()) {
|
last_logging_time_(std::chrono::steady_clock::now()) {
|
||||||
std::unordered_set<std::string> expected_sensor_id_strings;
|
std::unordered_set<std::string> expected_sensor_id_strings;
|
||||||
for (const auto& sensor_id : expected_sensor_ids) {
|
for (const auto& sensor_id : expected_sensor_ids) {
|
||||||
|
// Landmark data does not need to be collated.
|
||||||
|
if (sensor_id.type == SensorId::SensorType::LANDMARK) continue;
|
||||||
expected_sensor_id_strings.insert(sensor_id.id);
|
expected_sensor_id_strings.insert(sensor_id.id);
|
||||||
}
|
}
|
||||||
sensor_collator_->AddTrajectory(
|
sensor_collator_->AddTrajectory(
|
||||||
|
|
|
@ -74,7 +74,7 @@ class CollatedTrajectoryBuilder : public TrajectoryBuilderInterface {
|
||||||
|
|
||||||
void AddSensorData(const std::string& sensor_id,
|
void AddSensorData(const std::string& sensor_id,
|
||||||
const sensor::LandmarkData& landmark_data) override {
|
const sensor::LandmarkData& landmark_data) override {
|
||||||
AddData(sensor::MakeDispatchable(sensor_id, landmark_data));
|
wrapped_trajectory_builder_->AddSensorData(sensor_id, landmark_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddLocalSlamResultData(std::unique_ptr<mapping::LocalSlamResultData>
|
void AddLocalSlamResultData(std::unique_ptr<mapping::LocalSlamResultData>
|
||||||
|
|
Loading…
Reference in New Issue