@@ -231,7 +231,6 @@ VisualizationManager::VisualizationManager(
231
231
executor_->add_node (rviz_ros_node_.lock ()->get_raw_node ());
232
232
233
233
display_factory_ = new DisplayFactory ();
234
-
235
234
update_timer_ = new QTimer;
236
235
connect (update_timer_, SIGNAL (timeout ()), this , SLOT (onUpdate ()));
237
236
}
@@ -365,15 +364,13 @@ void VisualizationManager::onUpdate()
365
364
366
365
if (time_update_timer_ > 0 .1f ) {
367
366
time_update_timer_ = 0 .0f ;
368
-
369
367
updateTime ();
370
368
}
371
369
372
370
frame_update_timer_ += wall_dt;
373
371
374
372
if (frame_update_timer_ > 1 .0f ) {
375
373
frame_update_timer_ = 0 .0f ;
376
-
377
374
updateFrames ();
378
375
}
379
376
@@ -436,18 +433,15 @@ void VisualizationManager::updateFrames()
436
433
std::string error;
437
434
if (frame_manager_->frameHasProblems (getFixedFrame ().toStdString (), error)) {
438
435
if (!frame_manager_->anyTransformationDataAvailable ()) {
439
- // fixed_prop->setToWarn();
440
436
std::stringstream ss;
441
437
ss << " No tf data. Actual error: " << error;
442
438
global_status_->setStatus (
443
439
StatusProperty::Warn, " Fixed Frame" , QString::fromStdString (ss.str ()));
444
440
} else {
445
- // fixed_prop->setToError();
446
441
global_status_->setStatus (
447
442
StatusProperty::Error, " Fixed Frame" , QString::fromStdString (error));
448
443
}
449
444
} else {
450
- // fixed_prop->setToOK();
451
445
global_status_->setStatus (StatusProperty::Ok, " Fixed Frame" , " OK" );
452
446
}
453
447
}
0 commit comments