I am writing a new ros node in webots-ros and sometimes I get this warning: QObject::startTimer: Timers cannot have negative intervals. And the webots simulation freezes.
Any ideas on what can be the problem?
I am writing a new ros node in webots-ros and sometimes I get this warning: QObject::startTimer: Timers cannot have negative intervals. And the webots simulation freezes.
Any ideas on what can be the problem?
From the description you gave it sounds like you are passing the QT QTimer object a negative value for the interval.
Can you log the interval value before you start the timer and/or provide us with a code sample to help you further debug this issue?
Edit: It looks like webots-ros is a framework that uses QT QTimer internally. Try looking at this thread to see if it solves your issue: https://www.qtcentre.org/threads/61601-QObject-startTimer-QTimer-cannot-have-a-negative-interval