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

Add the possibility to load multiple videos #44

Closed GiulioRomualdi closed 2 years ago

GiulioRomualdi commented 2 years ago

This PR allows the possibility to load several videos from the same dataset. The filenames of each video are retrieved thanks to a RegExp. If we assume that the name of the dataset is dataset.mat the regexp will be

dataset_[a-zA-Z0-9_]*\.mp4$

where

In other words, dataset_camera1.mp4 dataset_webcam12.mp4 will be considered valid filenames. On the other hand, dataset1_camera1.mp4 will not.

Accordingly to the number of videos opened the layout of the application automatically adds the tabs in the associated layout.

In the following example, I duplicated the video to show the feature

https://user-images.githubusercontent.com/16744101/173373344-a78757ab-2c3e-455b-a19c-e774420da743.mp4