File: README.md

package info (click to toggle)
sight 25.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,180 kB
  • sloc: cpp: 289,476; xml: 17,257; ansic: 9,878; python: 1,379; sh: 144; makefile: 33
file content (52 lines) | stat: -rw-r--r-- 1,836 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# sight::module::sync

Contains services that control execution flow to synchronize various data streams (frames, matrix, timelines...) with sight signals and slots.

## Services

* **synchronizer**: The synchronizer service synchronizes video frames and/or transform matrices.
 This service takes a set of frames timelines (**::data::frame_tl**) and matrices timelines (**::data::matrix_tl**).
 The timelines contents are synchronized when some data are added, and when the synchronization is required, 
 which can be automated or through slot.
 Once synchronized, the timeline data are pushed in output variables,(**data::image**) for frames and (**data::matrix4**) for matrices,
  which are associated to their respective timeline through the configuration.

## How to use it

### CMake

```cmake
add_dependencies(my_target module_sync ... )
```

### XML

Please find here some example of frame matrix synchronizer
```
<service type="sight::module::sync::synchronizer" auto_connect="true">
    <in group="frame_tl">
        <key uid="frameTL1" />
        <key uid="frameTL4" delay="36" />
        <key uid="frameTL6" />
    </in>
    <inout group="frames">
        <key uid="frame1" sendStatus="true" />
        <key uid="frame6" tl="2" />
        <key uid="frame4" tl="1" sendStatus="false"/>
        <key uid="frame11" tl="0"  sendStatus="true" />
    </inout>
    <in group="matrix_tl">
        <key uid="matrixTL1" />
        <key uid="matrixTL2" delay="56" />
    </in>
    <inout group="matrix">
        <key uid="matrix0" index="1" sendStatus="true" >
        <key uid="matrix1" />
        <key uid="matrix2" tl="1" index="0" sendStatus="false"/>
        <key uid="matrix3" tl="1" index="1"/>
        <key uid="matrix4" tl="0" index2"/>
    </inout>
    <tolerance>500</tolerance>
    <autoSync>true</autoSync>
</service>
```