-
-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synchronous updates #1475
base: noetic-devel
Are you sure you want to change the base?
Synchronous updates #1475
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -226,6 +226,13 @@ bool VisualizerApp::init(int argc, char** argv) | |
save_config_service_ = | ||
private_nh.advertiseService("save_config", &VisualizerApp::saveConfigCallback, this); | ||
|
||
//process any callbacks that don't use the designated callback queues of VisualizationManager | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you want to handle the global queue differently? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
// but don't interfere with library users | ||
QTimer* synchronous_global_timer = new QTimer(this); | ||
synchronous_global_timer->setInterval(10); | ||
synchronous_global_timer->setTimerType(Qt::VeryCoarseTimer); | ||
connect(synchronous_global_timer, &QTimer::timeout, this, [](){ros::spinOnce();}); | ||
|
||
#if CATCH_EXCEPTIONS | ||
} | ||
catch (std::exception& e) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.