Unify to AddLaserFan for both 2D and 3D. (#129)

master
Wolfgang Hess 2016-10-19 15:25:19 +02:00 committed by GitHub
parent ccbf9ef1be
commit 0289ece55d
1 changed files with 2 additions and 8 deletions

View File

@ -521,14 +521,8 @@ void Node::HandleSensorData(const string& sensor_id,
return;
case carto::sensor::Data::Type::kLaserFan:
if (options_.map_builder_options.use_trajectory_builder_2d()) {
trajectory_builder->AddHorizontalLaserFan(sensor_data->time,
sensor_data->laser_fan);
} else {
CHECK(options_.map_builder_options.use_trajectory_builder_3d());
trajectory_builder->AddLaserFan3D(sensor_data->time,
sensor_data->laser_fan);
}
trajectory_builder->AddLaserFan(sensor_data->time,
sensor_data->laser_fan);
return;
case carto::sensor::Data::Type::kOdometry: