Remove warning at the beginning of localization. (#1329)

* Remove warning.

* Remove warning from 2D as well.
master
Arno Fleck 2018-07-25 11:02:52 +02:00 committed by Alexander Belyaev
parent 2b042311d8
commit 52804df988
2 changed files with 0 additions and 6 deletions

View File

@ -773,9 +773,6 @@ void PoseGraph2D::RunOptimization() {
bool PoseGraph2D::CanAddWorkItemModifying(int trajectory_id) {
auto it = data_.trajectories_state.find(trajectory_id);
if (it == data_.trajectories_state.end()) {
LOG(WARNING) << "trajectory_id:" << trajectory_id
<< " has not been added "
"but modification is requested.";
return true;
}
if (it->second.state == TrajectoryState::FINISHED) {

View File

@ -856,9 +856,6 @@ void PoseGraph3D::RunOptimization() {
bool PoseGraph3D::CanAddWorkItemModifying(int trajectory_id) {
auto it = data_.trajectories_state.find(trajectory_id);
if (it == data_.trajectories_state.end()) {
LOG(WARNING) << "trajectory_id:" << trajectory_id
<< " has not been added "
"but modification is requested.";
return true;
}
if (it->second.state == TrajectoryState::FINISHED) {