Skip to content

Commit

Permalink
Clean visualization_manager.cpp (#1317)
Browse files Browse the repository at this point in the history
Signed-off-by: mosfet80 <realeandrea@yahoo.it>
  • Loading branch information
mosfet80 authored Dec 27, 2024
1 parent be68734 commit 2f82645
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions rviz_common/src/rviz_common/visualization_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down Expand Up @@ -365,15 +364,13 @@ void VisualizationManager::onUpdate()

if (time_update_timer_ > 0.1f) {
time_update_timer_ = 0.0f;

updateTime();
}

frame_update_timer_ += wall_dt;

if (frame_update_timer_ > 1.0f) {
frame_update_timer_ = 0.0f;

updateFrames();
}

Expand Down Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 2f82645

Please sign in to comment.