Bag-info » History » Version 3

Version 2 (J. Moringen, 08/24/2011 10:49 PM) → Version 3/12 (J. Moringen, 08/24/2011 10:50 PM)

h1. @bag-info@

h2. Obtaining @bag-info@

Binaries of the @bag-info@ program can be downloaded from the "continuous integration server":http://ci.cor-lab.org for versions RSB 0.4 and 0.5 of the project:rsb: versions:

* "0.4 i686":https://ci.cor-lab.de/job/cl-rsbag-tools-stable/label=ubuntu_lucid_32bit/
* "0.4 x86_64":https://ci.cor-lab.de/job/cl-rsbag-tools-stable/label=ubuntu_lucid_64bit/
* "0.5 i686":https://ci.cor-lab.de/job/cl-rsbag-tools/label=ubuntu_lucid_32bit/
* "0.5 x86_64":https://ci.cor-lab.de/job/cl-rsbag-tools/label=ubuntu_lucid_64bit/

After the download, the @bag-record@ has to be made executable in most cases. This can be done for example by executing
<pre>
chmod +x bag-info
</pre>
in the download directory.

h2. Checking Versions and Displaying Help

Version and help information is displayed when the @--version@ and @--help@ commandline options are specified:
<pre>
./bag-info --version
./bag-info --help
</pre>

The output of @--help@ includes a list of supported file formats.

h2. Inspecting a File

When invoked with just a file name, @bag-info@ will display some basic information about the stored data. For example
<pre>
./bag-info /tmp/nao.tide
</pre>

should produce output similar to the following:

<pre>
File "/tmp/nao.tide"
Events: 160
Start : 2011-08-21T18:15:54.088877+02:00
End : 2011-08-21T18:16:05.445361+02:00
Channel "/nao/proprioception/"
Events: 51
Start : 2011-08-21T18:15:54.932970+02:00
End : 2011-08-21T18:16:05.319996+02:00
Length: 10.387026d0
Rate : 4.909971343096666d0
Channel "/nao/audio/all/"
Events: 63
Start : 2011-08-21T18:15:54.868080+02:00
End : 2011-08-21T18:16:05.445361+02:00
Length: 10.577281d0
Rate : 5.956162079838855d0
Channel "/nao/vision/top/"
Events: 46
Start : 2011-08-21T18:15:54.088877+02:00
End : 2011-08-21T18:16:04.616276+02:00
Length: 10.527398999999999d0
Rate : 4.369550351421087d0
</pre>

*Note: the file extension ("tide" in this case) determines the used file format backend. Currently, only the "TIDELog":https://retf.info/svn/drafts/rd-0001.txt file format is supported.*