From 2f82645f65e578b2aa6098bfd4ad164ce7695963 Mon Sep 17 00:00:00 2001 From: mosfet80 Date: Fri, 27 Dec 2024 21:33:12 +0100 Subject: [PATCH] Clean visualization_manager.cpp (#1317) Signed-off-by: mosfet80 --- rviz_common/src/rviz_common/visualization_manager.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/rviz_common/src/rviz_common/visualization_manager.cpp b/rviz_common/src/rviz_common/visualization_manager.cpp index 0339f5753..f9cb3d306 100644 --- a/rviz_common/src/rviz_common/visualization_manager.cpp +++ b/rviz_common/src/rviz_common/visualization_manager.cpp @@ -231,7 +231,6 @@ VisualizationManager::VisualizationManager( executor_->add_node(rviz_ros_node_.lock()->get_raw_node()); display_factory_ = new DisplayFactory(); - update_timer_ = new QTimer; connect(update_timer_, SIGNAL(timeout()), this, SLOT(onUpdate())); } @@ -365,7 +364,6 @@ void VisualizationManager::onUpdate() if (time_update_timer_ > 0.1f) { time_update_timer_ = 0.0f; - updateTime(); } @@ -373,7 +371,6 @@ void VisualizationManager::onUpdate() if (frame_update_timer_ > 1.0f) { frame_update_timer_ = 0.0f; - updateFrames(); } @@ -436,18 +433,15 @@ void VisualizationManager::updateFrames() std::string error; if (frame_manager_->frameHasProblems(getFixedFrame().toStdString(), error)) { if (!frame_manager_->anyTransformationDataAvailable()) { - // fixed_prop->setToWarn(); std::stringstream ss; ss << "No tf data. Actual error: " << error; global_status_->setStatus( StatusProperty::Warn, "Fixed Frame", QString::fromStdString(ss.str())); } else { - // fixed_prop->setToError(); global_status_->setStatus( StatusProperty::Error, "Fixed Frame", QString::fromStdString(error)); } } else { - // fixed_prop->setToOK(); global_status_->setStatus(StatusProperty::Ok, "Fixed Frame", "OK"); } }