-
Notifications
You must be signed in to change notification settings - Fork 38
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
YARPRobotLoggerDevice: excessively long time horizon for signals logged with YARP_CLOCK #812
Comments
Can you add the mat file here? |
was able to replicate the issue in my setup. I noticed that once the logger is closed, the last timestamp appears to be a high number. This is the first timestamp
This is the second-to-last timestamp:
However, the last one is
The device utilizes the YarpClock to obtain the time |
I'm afraid it is something related to the clock when we destroy the device @traversaro |
When pressing CTRL+C, the |
|
Nice catch! @rob-mau could you try to implement what @S-Dafarra suggests and open a PR for that :) ? |
CC @nicktrem |
Probably we should also substitute the default destructor adding a |
I have implemented the suggested changes and opened a PR. The problem still persists. |
We may double-check the attachments levels as explained in robotology/robots-configuration#377 |
I checked them, I fixed one of the detach level still the problem is there. I noticed that when I press ctrl-c we got
So the clock is destroyed while the thread is still running. As you can notice
is before
|
I added a print at the beginning of the This is the trace. The clock is destroyed before the
|
Perhaps @traversaro and/or @randaz81 have some hints |
I have noticed that the clock gets destroyed when calling |
That is called by the destructor of the RFModule |
I think I might have an idea. |
I guess that the problem is not the switch to the |
From a theoretical perspective, I don't see anything preventing the two clocks from starting at different epochs 🤔 In our case, the network clock is generated by https://github.com/robotology/gazebo-yarp-plugins/tree/master/plugins/clock. The content of the
when I start Gazebo. As explained here, the first value represents seconds and the second represents nanoseconds. It starts from |
Talking with @S-Dafarra we thought that we could avoid saving the data if the difference between the current time instant and the previous one is greater than the threshold |
Fixed by #839 |
I would like to report a peculiar behavior of the
YARPRobotLoggerDevice
. If I run it withYARP_CLOCK
:and then I launch the
robot-log-visualizer
, the signal plot displays an excessively long time horizon (on the order of 1e9 seconds!).Conversely, when I launch the logger without
YARP_CLOCK
, the amplitude of the time window is consistent with the logger's execution time.The text was updated successfully, but these errors were encountered: