|
4 | 4 |
|
5 | 5 | # **VTracker interface C++ library** |
6 | 6 |
|
7 | | -**v1.2.0** |
| 7 | +**v1.3.0** |
8 | 8 |
|
9 | 9 |
|
10 | 10 |
|
|
56 | 56 | | 1.0.0 | 20.07.2023 | First version. | |
57 | 57 | | 1.1.0 | 10.08.2023 | - Data structures updated. | |
58 | 58 | | 1.2.0 | 24.09.2023 | - Updated encode(...) and decode(...) methods of VTrackerParams.<br />- Added decodeAndExecuteCommand(...) method.<br />- Added example of video tracker implementation. | |
| 59 | +| 1.3.0 | 26.09.2023 | - Signature of getParams(...) method changed. | |
59 | 60 |
|
60 | 61 |
|
61 | 62 |
|
@@ -144,7 +145,7 @@ public: |
144 | 145 | virtual float getParam(VTrackerParam id) = 0; |
145 | 146 |
|
146 | 147 | /// Get video tracker params (results). |
147 | | - virtual VTrackerParams getParams() = 0; |
| 148 | + virtual void getParams(VTrackerParams& params) = 0; |
148 | 149 |
|
149 | 150 | /// Execute command. |
150 | 151 | virtual bool executeCommand(VTrackerCommand id, |
@@ -259,10 +260,12 @@ virtual float getParam(VTrackerParam id) = 0; |
259 | 260 | **getParams(...)** method returns video tracker params class and tracking results. The particular implementation of the video tracker must provide thread-safe **getParams(...)** method call. This means that the **getParams(...)** method can be safely called from any thread. Method declaration: |
260 | 261 |
|
261 | 262 | ```cpp |
262 | | -virtual VTrackerParams getParams() = 0; |
| 263 | +virtual void getParams(VTrackerParams& params) = 0; |
263 | 264 | ``` |
264 | 265 |
|
265 | | -**Returns:** video tracker parameters class (see [**VTrackerParams class**](#VTrackerParams-class-description) description). |
| 266 | +| Parameter | Description | |
| 267 | +| --------- | ------------------------------------------------------- | |
| 268 | +| params | Video tracker parameters class object (VTrackerParams). | |
266 | 269 |
|
267 | 270 |
|
268 | 271 |
|
@@ -337,7 +340,7 @@ static void encodeSetParamCommand(uint8_t* data, int& size, VTrackerParam id, fl |
337 | 340 | | ---- | ----- | -------------------------------------------------- | |
338 | 341 | | 0 | 0x01 | SET_PARAM command header value. | |
339 | 342 | | 1 | 0x01 | Major version of VTracker class. | |
340 | | -| 2 | 0x02 | Minor version of VTracker class. | |
| 343 | +| 2 | 0x03 | Minor version of VTracker class. | |
341 | 344 | | 3 | id | Parameter ID **int32_t** in Little-endian format. | |
342 | 345 | | 4 | id | Parameter ID **int32_t** in Little-endian format. | |
343 | 346 | | 5 | id | Parameter ID **int32_t** in Little-endian format. | |
@@ -380,7 +383,7 @@ static void encodeCommand(uint8_t* data, int& size, VTrackerCommand id, float ar |
380 | 383 | | ---- | ----- | ------------------------------------------------------------ | |
381 | 384 | | 0 | 0x00 | COMMAND header value. | |
382 | 385 | | 1 | 0x01 | Major version of VTracker class. | |
383 | | -| 2 | 0x02 | Minor version of VTracker class. | |
| 386 | +| 2 | 0x03 | Minor version of VTracker class. | |
384 | 387 | | 3 | id | Command ID **int32_t** in Little-endian format. | |
385 | 388 | | 4 | id | Command ID **int32_t** in Little-endian format. | |
386 | 389 | | 5 | id | Command ID **int32_t** in Little-endian format. | |
@@ -1154,7 +1157,7 @@ public: |
1154 | 1157 | float getParam(VTrackerParam id); |
1155 | 1158 |
|
1156 | 1159 | /// Get video tracker params (results). |
1157 | | - VTrackerParams getParams(); |
| 1160 | + void getParams(VTrackerParams& params); |
1158 | 1161 |
|
1159 | 1162 | /// Execute command. |
1160 | 1163 | bool executeCommand(VTrackerCommand id, |
|
0 commit comments