Skip to content

Commit 2f82645

Browse files
authored
Clean visualization_manager.cpp (#1317)
Signed-off-by: mosfet80 <[email protected]>
1 parent be68734 commit 2f82645

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

rviz_common/src/rviz_common/visualization_manager.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ VisualizationManager::VisualizationManager(
231231
executor_->add_node(rviz_ros_node_.lock()->get_raw_node());
232232

233233
display_factory_ = new DisplayFactory();
234-
235234
update_timer_ = new QTimer;
236235
connect(update_timer_, SIGNAL(timeout()), this, SLOT(onUpdate()));
237236
}
@@ -365,15 +364,13 @@ void VisualizationManager::onUpdate()
365364

366365
if (time_update_timer_ > 0.1f) {
367366
time_update_timer_ = 0.0f;
368-
369367
updateTime();
370368
}
371369

372370
frame_update_timer_ += wall_dt;
373371

374372
if (frame_update_timer_ > 1.0f) {
375373
frame_update_timer_ = 0.0f;
376-
377374
updateFrames();
378375
}
379376

@@ -436,18 +433,15 @@ void VisualizationManager::updateFrames()
436433
std::string error;
437434
if (frame_manager_->frameHasProblems(getFixedFrame().toStdString(), error)) {
438435
if (!frame_manager_->anyTransformationDataAvailable()) {
439-
// fixed_prop->setToWarn();
440436
std::stringstream ss;
441437
ss << "No tf data. Actual error: " << error;
442438
global_status_->setStatus(
443439
StatusProperty::Warn, "Fixed Frame", QString::fromStdString(ss.str()));
444440
} else {
445-
// fixed_prop->setToError();
446441
global_status_->setStatus(
447442
StatusProperty::Error, "Fixed Frame", QString::fromStdString(error));
448443
}
449444
} else {
450-
// fixed_prop->setToOK();
451445
global_status_->setStatus(StatusProperty::Ok, "Fixed Frame", "OK");
452446
}
453447
}

0 commit comments

Comments
 (0)