![]() |
Perception Tool Kit (PTK) API Guide
|
|
Functions | |
| sensorDataPlayerInsHandle | SensorDataPlayerINS_create (PTK_DBConfig *cfg, char appTags[][DBCONFIG_MAX_WORD_LEN], uint32_t numAppTags, uint32_t insSensorId, uint8_t intraFrameWait) |
| Creates a sensor data player context. More... | |
| void | SensorDataPlayerINS_delete (sensorDataPlayerInsHandle hdl) |
| Deletes a previously created context. More... | |
| uint32_t | SensorDataPlayerINS_get_next (sensorDataPlayerInsHandle hdl, void **dataPtr, size_t *dataSize, uint64_t *timestamp) |
| Get the the record from the sensorstream whose current timestamp is smallest (next). More... | |
| void | SensorDataPlayerINS_set_time (sensorDataPlayerInsHandle hdl, uint64_t timestamp) |
| Set time to given timestamp. This rewinds all sensorstreams to the first record after given timestamp. Also, re-initializes the INS buffer correctly. More... | |
| ssHandle | SensorDataPlayerINS_get_sensorstream (sensorDataPlayerInsHandle hdl, uint32_t sensorAppId) |
| Get access to the sensorstream for given sensor app id. More... | |
| sensorDataPlayerInsHandle SensorDataPlayerINS_create | ( | PTK_DBConfig * | cfg, |
| char | appTags[][DBCONFIG_MAX_WORD_LEN], | ||
| uint32_t | numAppTags, | ||
| uint32_t | insSensorId, | ||
| uint8_t | intraFrameWait | ||
| ) |
Creates a sensor data player context.
| [in] | cfg | database configuration file specifying available sensors |
| [in] | appTags | string (char array) array. Sensors in cfg with appTag field matching an appTags vector entry will be used for sensor data replay. Ordering of appTags establishes a sensor enumeration for application to reference a certain sensor, i.e., sensor with app tag appTags[i] has sensor app id i. |
| [in] | numAppTags | number of app tags (second dimension of appTags) |
| [in] | insSensorId | sensor id (i.e., index in appTags vector) for the INS sensor |
| void SensorDataPlayerINS_delete | ( | sensorDataPlayerInsHandle | hdl | ) |
Deletes a previously created context.
| [in] | hdl | pointer to SensorDataPlayerINS object |
| uint32_t SensorDataPlayerINS_get_next | ( | sensorDataPlayerInsHandle | hdl, |
| void ** | dataPtr, | ||
| size_t * | dataSize, | ||
| uint64_t * | timestamp | ||
| ) |
Get the the record from the sensorstream whose current timestamp is smallest (next).
| [in] | hdl | pointer to SensorDataPlayerINS object |
| [out] | dataPtr | void pointer to data pointer to the returned record |
| [out] | dataSize | size_t pointer to size of the returned record |
| [out] | timestamp | uint64_t pointer to timestamp for the returned record |
| void SensorDataPlayerINS_set_time | ( | sensorDataPlayerInsHandle | hdl, |
| uint64_t | timestamp | ||
| ) |
Set time to given timestamp. This rewinds all sensorstreams to the first record after given timestamp. Also, re-initializes the INS buffer correctly.
| [in] | hdl | pointer to SensorDataPlayerINS object |
| [in] | timestamp | uint64_t timestamp to set all sensorstreams |
| ssHandle SensorDataPlayerINS_get_sensorstream | ( | sensorDataPlayerInsHandle | hdl, |
| uint32_t | sensorAppId | ||
| ) |
Get access to the sensorstream for given sensor app id.
| [in] | hdl | pointer to SensorDataPlayerINS object |
| [in] | sensorAppId | sensor's app id (refer to Constructor brief for details) |