Definition of SensorLogWriter.
More...
|
| bool | saveLog (const String &outputDir, const String &logName, const CameraCharacteristics &cameraCharacteristics, LargeUnsignedInteger videoStartTimestamp) |
| | Save sensor log.
|
| void | pushGPSPosition (LargeUnsignedInteger acquisitionTimestamp, LargeUnsignedInteger satteliteTime, double latitude, double longitude, double altitude, double course, double speed, double horizontalAccuracy, double verticalAccuracy, double speedAccuracy, double courseAccuracy) |
| | Push GPS position.
|
| void | pushAcceleration (LargeUnsignedInteger acquisitionTimestamp, double x, double y, double z) |
| | Push acceleration data.
|
| void | pushRotation (LargeUnsignedInteger acquisitionTimestamp, double x, double y, double z) |
| | Push rotation data.
|
| void | pushCameraFrameInfo (LargeUnsignedInteger acquisitionTimestamp, double exposureTime, double iso) |
| | Push camera frame info.
|
|
|
using | Base = ApiObject<ISensorLogWriter, false> |
| | Alias for the base class.
|
Definition of SensorLogWriter.
◆ produce()
Create a SensorLogWriter object.
- Parameters
-
| [in] | keepLastSeconds | The number of seconds saved in the log. |
- Returns
- A shared pointer to the SensorLogWriter object.
◆ pushAcceleration()
| void gem::SensorLogWriter::pushAcceleration |
( |
LargeUnsignedInteger | acquisitionTimestamp, |
|
|
double | x, |
|
|
double | y, |
|
|
double | z ) |
|
inline |
Push acceleration data.
- Parameters
-
| [in] | acquisitionTimestamp | Acquisition timestamp in milliseconds since 1970. |
| [in] | x | Acceleration on the x axis of the device, G-units. |
| [in] | y | Acceleration on the y axis of the device, G-units. |
| [in] | z | Acceleration on the z axis of the device, G-units. |
◆ pushCameraFrameInfo()
| void gem::SensorLogWriter::pushCameraFrameInfo |
( |
LargeUnsignedInteger | acquisitionTimestamp, |
|
|
double | exposureTime, |
|
|
double | iso ) |
|
inline |
Push camera frame info.
- Parameters
-
| [in] | acquisitionTimestamp | Acquisition timestamp in milliseconds since 1970. |
| [in] | exposureTime | Duration each pixel is exposed to light in nanoseconds. |
| [in] | iso | The actual iso value in ISO arithmetic units. |
◆ pushGPSPosition()
| void gem::SensorLogWriter::pushGPSPosition |
( |
LargeUnsignedInteger | acquisitionTimestamp, |
|
|
LargeUnsignedInteger | satteliteTime, |
|
|
double | latitude, |
|
|
double | longitude, |
|
|
double | altitude, |
|
|
double | course, |
|
|
double | speed, |
|
|
double | horizontalAccuracy, |
|
|
double | verticalAccuracy, |
|
|
double | speedAccuracy, |
|
|
double | courseAccuracy ) |
|
inline |
Push GPS position.
- Parameters
-
| [in] | acquisitionTimestamp | Acquisition timestamp in milliseconds since 1970. |
| [in] | satteliteTime | Satellite timestamp in milliseconds since 1970. |
| [in] | latitude | Geographical latitude in degrees. |
| [in] | longitude | Geographical longitude in degrees. |
| [in] | altitude | Altitude above main sea level in meters. |
| [in] | course | The course of the movement in degrees. |
| [in] | speed | Travel speed in meter per second. |
| [in] | horizontalAccuracy | Horizontal accuracy of position in meters. |
| [in] | verticalAccuracy | Vertical accuracy of position in meters. |
| [in] | speedAccuracy | Travel speed accuracy in meter per second. |
| [in] | courseAccuracy | Course accuracy in degrees. |
◆ pushRotation()
| void gem::SensorLogWriter::pushRotation |
( |
LargeUnsignedInteger | acquisitionTimestamp, |
|
|
double | x, |
|
|
double | y, |
|
|
double | z ) |
|
inline |
Push rotation data.
- Parameters
-
| [in] | acquisitionTimestamp | Acquisition timestamp in milliseconds since 1970. |
| [in] | x | Rotation rate around the x axis of the device in radian per second. |
| [in] | y | Rotation rate around the y axis of the device in radian per second. |
| [in] | z | Rotation rate around the z axis of the device in radian per second. |
◆ saveLog()
Save sensor log.
In the outputDir will be created 2 files "logName.meta" and "logName.sensors"
- Parameters
-
| [in] | outputDir | The directory that contains the log. |
| [in] | logName | The name of the log that will be used for the metadata file and the sensor file. |
| [in] | cameraCharacteristics | The characteristics of the camera with which the video was recorded. |
| [in] | videoStartTimestamp | The video start timestamp in milliseconds since 1970. |
- Returns
- False if the input parameters are invalid(output directory does not exist or cannot be created; missing camera characteristics; video start timestamp not in sync with sensors timestamp).