ami-iit / robot-log-visualizer

Visualizer to display the data logged with YarpRobotLoggerDevice
BSD 3-Clause "New" or "Revised" License
22 stars 4 forks source link

🐛 Fix the robot visualization when the dataset contains signals retrieved at different frequencies #72

Closed GiulioRomualdi closed 9 months ago

GiulioRomualdi commented 9 months ago

This PR addressed #71. The problem identified in #71 was caused by a discrepancy in the data collection frequencies—image signals were captured at 30fps, while joint data was recorded at 100Hz. In this specific dataset, we encountered an unfortunate situation where the initial timestamp of the camera data was lower than the first timestamp of the joints. Consequently, the visualizer erroneously used the camera timestamps as the base timestamp for the entire dataset.

To resolve this issue, the PR introduces a fix that computes the correct time joint index based on the common timestamps used by the visualizer. This ensures proper synchronization and resolves the problems observed in #71.

GiulioRomualdi commented 9 months ago

@paolo-viceconte let me know if you are fine with this PR :)

paolo-viceconte commented 9 months ago

Yes, it loogs good to me. Also given the test mentioned in https://github.com/ami-iit/robot-log-visualizer/issues/71#issuecomment-1812758355, I guess we can merge.