Remove warning at the beginning of localization. (#1329)
* Remove warning. * Remove warning from 2D as well.master
parent
2b042311d8
commit
52804df988
|
@ -773,9 +773,6 @@ void PoseGraph2D::RunOptimization() {
|
||||||
bool PoseGraph2D::CanAddWorkItemModifying(int trajectory_id) {
|
bool PoseGraph2D::CanAddWorkItemModifying(int trajectory_id) {
|
||||||
auto it = data_.trajectories_state.find(trajectory_id);
|
auto it = data_.trajectories_state.find(trajectory_id);
|
||||||
if (it == data_.trajectories_state.end()) {
|
if (it == data_.trajectories_state.end()) {
|
||||||
LOG(WARNING) << "trajectory_id:" << trajectory_id
|
|
||||||
<< " has not been added "
|
|
||||||
"but modification is requested.";
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (it->second.state == TrajectoryState::FINISHED) {
|
if (it->second.state == TrajectoryState::FINISHED) {
|
||||||
|
|
|
@ -856,9 +856,6 @@ void PoseGraph3D::RunOptimization() {
|
||||||
bool PoseGraph3D::CanAddWorkItemModifying(int trajectory_id) {
|
bool PoseGraph3D::CanAddWorkItemModifying(int trajectory_id) {
|
||||||
auto it = data_.trajectories_state.find(trajectory_id);
|
auto it = data_.trajectories_state.find(trajectory_id);
|
||||||
if (it == data_.trajectories_state.end()) {
|
if (it == data_.trajectories_state.end()) {
|
||||||
LOG(WARNING) << "trajectory_id:" << trajectory_id
|
|
||||||
<< " has not been added "
|
|
||||||
"but modification is requested.";
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (it->second.state == TrajectoryState::FINISHED) {
|
if (it->second.state == TrajectoryState::FINISHED) {
|
||||||
|
|
Loading…
Reference in New Issue