Unify to AddLaserFan for both 2D and 3D. (#129)
parent
ccbf9ef1be
commit
0289ece55d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue