Skip to content
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

problem with MonitorDashWidget addition to dashboard #108

Closed
twiniars opened this issue Jun 1, 2016 · 6 comments
Closed

problem with MonitorDashWidget addition to dashboard #108

twiniars opened this issue Jun 1, 2016 · 6 comments

Comments

@twiniars
Copy link
Contributor

twiniars commented Jun 1, 2016

in ros kinetic addition of
self._monitor = MonitorDashWidget(self.context)
to dashboard causes the following, cyclic (ca. 1s) console output:
QObject::startTimer: Timers cannot be started from another thread
QObject::killTimer: Timers cannot be stopped from another thread

@dirk-thomas
Copy link
Contributor

Can you please describe what exactly you ran and what the output was. From your description I don't see which line you are referring to.

@twiniars
Copy link
Contributor Author

twiniars commented Jun 1, 2016

In ROS kinetic, ubuntu 16.04 I run the python RQT plugin in the attachment. The plugin containsMonitorDashWidget. As a result the QT prints an error on the console.

QObject::startTimer: Timers cannot be started from another thread
QObject::killTimer: Timers cannot be stopped from another thread

The same code works well in ROS jade, ubuntu 14.04.

irp6_dashboard.py.txt

@dirk-thomas
Copy link
Contributor

Have you tried to use the class according to its documentation?

@twiniars
Copy link
Contributor Author

twiniars commented Jun 1, 2016

When I use the code almost directly from the documentation you mentioned, the problem still occurs. I attach the file. Please note the mistake in documentation. The line
from rqt_robot_dashboard.widgets import MonitorDashWidget, ConsoleDashWidget
should be replaced with
from rqt_robot_dashboard.widgets import MonitorDashWidget, ConsoleDashWidget, BatteryDashWidget

If I do something wrong please let me know.

irp6_dashboard.py.txt

@dirk-thomas
Copy link
Contributor

Maybe @ablasdel can comment on how he is using the dashboard in custom rqt plugins.

@twiniars
Copy link
Contributor Author

twiniars commented Jun 1, 2016

I solved the problem by using signals and slots according to
http://pyqt.sourceforge.net/Docs/PyQt5/signals_slots.html. See updated pull request #106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants