14 #ifndef TANGO_CLIENT_API_HEADER_TANGO_CLIENT_API_H_ 15 #define TANGO_CLIENT_API_HEADER_TANGO_CLIENT_API_H_ 219 #define TANGO_UUID_LEN 37 220 #define TANGO_COORDINATE_FRAME_ID_LEN 37 221 #define TANGO_LEVEL_SHORT_NAME_BYTE_MAX_LEN 16 222 #define TANGO_LEVEL_ID_BYTE_MAX_LEN 19 241 "10000000-0000-0000-0000-0000000000ff"};
243 "10000000-0000-0000-0000-000000000000"};
245 "10000000-0000-0000-0000-000000000001"};
247 "10000000-0000-0000-0000-000000000002"};
249 "10000000-0000-0000-0000-000000000003"};
251 "10000000-0000-0000-0000-000000000004"};
253 "10000000-0000-0000-0000-000000000005"};
255 "10000000-0000-0000-0000-000000000006"};
257 "10000000-0000-0000-0000-000000000007"};
259 "10000000-0000-0000-0000-000000000008"};
261 "10000000-0000-0000-0000-000000000009"};
321 double orientation[4];
325 double translation[3];
348 double orientation[4];
352 double translation[3];
382 #define TANGO_MAX_IMAGE_PLANES (4) 548 double distortion[5];
771 void (*TangoService_onPoseAvailable)(
void* context,
827 void (*TangoService_onXYZijAvailable)(
void* context,
842 void (*TangoService_onPointCloudAvailable)(
void* context,
859 void (*TangoService_onTangoEvent)(
void* context,
const TangoEvent* event),
960 TangoBufferId* buffer);
987 TangoCameraId id,
unsigned int texture_id, TangoBufferId buffer);
1169 const TangoUUID uuid,
const char* dst_file_dir);
1468 char* value,
size_t size);
1497 TangoCameraId id,
unsigned int texture_y,
unsigned int texture_Cb,
1498 unsigned int texture_Cr,
void* context,
1517 TangoUUID** dataset_uuids,
int* num_dataset_uuids);
1550 #endif // TANGO_CLIENT_API_HEADER_TANGO_CLIENT_API_H_ Event related to cloud ADFs.
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_GLOBAL_WGS84
TangoCoordinateFrameType
Tango coordinate frame enumerations.
The input argument is invalid.
TangoImageBuffer * color_image
TangoImageBuffer is reserved for future use.
double timestamp
The timestamp of the pose estimate, in seconds.
Could not estimate pose at this time.
struct TangoCoordinateFrameId TangoCoordinateFrameId
uint32_t ij_rows
The dimensions of the ij index buffer.
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_CAMERA_COLOR
TangoErrorType TangoService_setRuntimeConfig(TangoConfig tconfig)
TangoErrorType TangoService_Experimental_deleteDataset(const TangoUUID dataset_uuid)
TangoErrorType TangoService_initialize(void *jni_env, void *activity)
TangoErrorType TangoService_exportAreaDescription(const TangoUUID uuid, const char *dst_file_dir)
TangoErrorType TangoService_connectOnXYZijAvailable(void(*TangoService_onXYZijAvailable)(void *context, const TangoXYZij *xyz_ij),...)
uint32_t width
The width of the image in pixels.
Contains data required for motion tracking and scene reconstruction.
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_IMU
Contains only data required for motion tracking.
char TangoUUID[TANGO_UUID_LEN]
TangoErrorType TangoService_connectOnFrameAvailable(TangoCameraId id, void *context, void(*onFrameAvailable)(void *context, TangoCameraId id, const TangoImageBuffer *buffer))
int64_t frame_number
The frame number of this image.
The user has not given permissions to read and write datasets.
void TangoConfig_free(TangoConfig config)
double timestamp
The timestamp of this image.
double cx
Principal point x coordinate on the image, in pixels.
TangoErrorType TangoService_connectOnTextureAvailable(TangoCameraId id, void *context, TangoService_OnTextureAvailable callback)
#define TANGO_COORDINATE_FRAME_ID_LEN
uint32_t version
< Unused. An integer denoting the version of the structure.
TangoErrorType TangoConfig_getString(TangoConfig config, const char *key, char *value, size_t size)
TangoErrorType TangoService_Experimental_connectTextureIdUnity(TangoCameraId id, unsigned int texture_y, unsigned int texture_Cb, unsigned int texture_Cr, void *context, void(*callback)(void *, TangoCameraId))
TangoErrorType TangoConfig_getDouble(TangoConfig config, const char *key, double *value)
uint32_t height
The height of the image data.
TangoPoseStatusType
Tango pose status lifecycle enumerations. Every pose has a state denoted by this enum, which provides information about the internal status of the position estimate. The application may use the status to decide what actions or rendering should be taken. A change in the status between poses and subsequent timestamps can denote lifecycle state changes. The status affects the rotation and position estimates. Other fields are considered valid (i.e. version or timestamp).
TangoCameraId camera_id
ID of the camera which the intrinsics reference.
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_DISPLAY
TangoErrorType TangoAreaDescriptionMetadata_get(TangoAreaDescriptionMetadata metadata, const char *key, size_t *value_size, char **value)
TangoErrorType TangoService_connectOnPointCloudAvailable(void(*TangoService_onPointCloudAvailable)(void *context, const TangoPointCloud *cloud),...)
TangoErrorType
Tango Error types. Errors less than 0 should be dealt with by the program. Success is denoted by TANG...
Stop recording. Has no effect if recording is not currently started.
TangoErrorType TangoService_Experimental_releaseDatasetUUIDs(TangoUUID **dataset_uuids)
TangoErrorType TangoAreaDescriptionMetadata_listKeys(TangoAreaDescriptionMetadata metadata, char **key_list)
uint32_t version
An integer denoting the version of the structure.
Back-facing color camera.
TangoErrorType TangoService_updateTexture(TangoCameraId id, double *timestamp)
char * TangoConfig_toString(TangoConfig config)
TangoDepthMode
Tango depth data formats.
double fx
Focal length, x axis, in pixels.
TangoErrorType TangoService_connectOnPoseAvailable(uint32_t count, const TangoCoordinateFramePair *frames, void(*TangoService_onPoseAvailable)(void *context, const TangoPoseData *pose),...)
The TangoEvent structure signals important sensor and tracking events. Each event comes with a timest...
uint32_t version
An integer denoting the version of the structure.
struct TangoImageBuffer TangoImageBuffer
Immediately previous device pose.
Start recording. Has no effect if recording has already been started.
struct TangoEvent TangoEvent
The TangoEvent structure signals important sensor and tracking events. Each event comes with a timest...
This error code denotes some sort of hard error occurred.
void TangoService_disconnect()
TangoCoordinateFrameType base
double timestamp
Timestamp, in seconds, of the event.
Maximum number allowable.
Maximum camera allowable.
TangoErrorType TangoService_disconnectCamera(TangoCameraId id)
Unknown dataset recording mode.
Origin when the device started tracking.
uint32_t width
The width of the image data.
The calling app is missing Android permissions for ACCESS_FINE_LOCATION.
TangoErrorType TangoConfig_getInt64(TangoConfig config, const char *key, int64_t *value)
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_CAMERA_DEPTH
struct TangoPointCloud TangoPointCloud
TangoPointCloud contains information returned from the depth sensor.
Contains data required for motion tracking, as well as fisheye images.
TangoErrorType TangoService_Experimental_getDatasetUUIDs(TangoUUID **dataset_uuids, int *num_dataset_uuids)
TangoErrorType TangoConfig_setInt64(TangoConfig config, const char *key, int64_t value)
double fy
Focal length, y axis, in pixels.
Contains motion data, depth, and fisheye and RGB images.
The pose of this estimate is not valid.
TangoErrorType TangoService_updateTextureExternalOesForBuffer(TangoCameraId id, unsigned int texture_id, TangoBufferId buffer)
TangoErrorType TangoService_getAreaDescriptionUUIDList(char **uuid_list)
TangoCoordinateFramePair frame
TangoRuntimeRecordingControl_Experimental
TangoCameraId
Tango Camera enumerations.
const char * event_key
Description of the event key.
TangoErrorType TangoConfig_setString(TangoConfig config, const char *key, const char *value)
struct TangoPoseData TangoPoseData
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_CAMERA_FISHEYE
Runtime settable configuration.
TangoErrorType TangoAreaDescriptionMetadata_free(TangoAreaDescriptionMetadata metadata)
void(* TangoService_OnTextureAvailable)(void *, TangoCameraId)
Callback for when a new camera texture is available.
int64_t timestamp_ns
The timestamp of this image.
TangoErrorType TangoService_getAreaDescriptionMetadata(const TangoUUID uuid, TangoAreaDescriptionMetadata *metadata)
TangoPointCloud contains information returned from the depth sensor.
TangoErrorType TangoService_updateTextureExternalOes(TangoCameraId id, unsigned int tex, double *timestamp)
TangoErrorType TangoService_lockCameraBuffer(TangoCameraId id, double *timestamp, TangoBufferId *buffer)
TangoErrorType TangoConfig_setBool(TangoConfig config, const char *key, bool value)
uint32_t stride
The number of bytes per scanline of image data.
The user has not given permission to access the device's camera.
TangoErrorType TangoService_connectOnTangoEvent(void(*TangoService_onTangoEvent)(void *context, const TangoEvent *event),...)
void TangoService_unlockCameraBuffer(TangoCameraId id, TangoBufferId buffer)
void * TangoAreaDescriptionMetadata
Motion estimation is being initialized.
The pose of this estimate is valid.
uint32_t width
The width of the image data.
TangoErrorType TangoService_deleteAreaDescription(const TangoUUID uuid)
Origin within a saved area description.
Inertial Measurement Unit.
TangoErrorType TangoService_getPoseAtTime(double timestamp, TangoCoordinateFramePair frame, TangoPoseData *pose)
TangoImageFormatType format
Pixel format of data.
TangoErrorType TangoService_connectTextureId(TangoCameraId id, unsigned int tex, void *context, TangoService_OnTextureAvailable callback)
double cy
Principal point y coordinate on the image, in pixels.
TangoErrorType TangoConfig_setDouble(TangoConfig config, const char *key, double value)
Default, motion tracking only.
TangoErrorType TangoConfig_getInt32(TangoConfig config, const char *key, int32_t *value)
uint32_t ij_cols
The dimensions of the ij index buffer.
TangoConfigType
Tango runtime configuration enumerations.
uint8_t * data
Pixels in the format of this image buffer.
TangoCoordinateFrameType target
TangoErrorType TangoService_connectOnImageAvailable(TangoCameraId id, void *context, void(*onImageAvailable)(void *context, TangoCameraId id, const TangoImage *image, const TangoCameraMetadata *metadata))
void TangoService_resetMotionTracking()
TangoErrorType TangoService_importAreaDescription(const char *src_file_path, TangoUUID *uuid)
struct TangoCameraMetadata TangoCameraMetadata
This code indicates success.
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_AREA_DESCRIPTION
TangoErrorType TangoService_getCameraIntrinsics(TangoCameraId camera_id, TangoCameraIntrinsics *intrinsics)
TangoPoseStatusType status_code
The status of the pose, according to the pose lifecycle.
TangoConfig TangoService_getConfig(TangoConfigType config_type)
struct TangoTransformation TangoTransformation
uint32_t height
The height of the image data.
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_DEVICE
Back-facing fisheye wide-angle camera.
The TangoCoordinateFramePair struct contains a pair of coordinate frames of reference.
float accuracy
Unused. Reserved for metric accuracy.
TangoRecordingMode_Experimental
TangoErrorType TangoAreaDescriptionMetadata_set(TangoAreaDescriptionMetadata metadata, const char *key, size_t value_size, const char *value)
Back-facing camera producing IR-sensitive images.
TangoEventType type
Type of event.
#define TANGO_MAX_IMAGE_PLANES
TangoErrorType TangoService_saveAreaDescription(TangoUUID *uuid)
int64_t exposure_duration_ns
Exposure duration of this image in nanoseconds.
TangoErrorType TangoService_connect(void *context, TangoConfig config)
double timestamp
Time of capture of the depth data for this struct (in seconds).
TangoImageFormatType format
Pixel format of data.
double timestamp
Time of capture of the depth data for this struct (in seconds).
TangoErrorType TangoService_Experimental_getCurrentDatasetUUID(TangoUUID *dataset_uuid)
char data[TANGO_COORDINATE_FRAME_ID_LEN]
TangoEventType
Tango Event types.
The user has not given permission to export or import ADF files.
TangoErrorType TangoConfig_getBool(TangoConfig config, const char *key, bool *value)
TangoErrorType TangoService_saveAreaDescriptionMetadata(const TangoUUID uuid, TangoAreaDescriptionMetadata metadata)
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_NONE
struct TangoXYZij TangoXYZij
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_START_OF_SERVICE
TangoCalibrationType calibration_type
const TangoCoordinateFrameId TANGO_COORDINATE_FRAME_ID_PREVIOUS_DEVICE_POSE
uint32_t num_planes
Number of planes for the image format of this buffer.
uint32_t height
The height of the image in pixels.
struct TangoImage TangoImage
General uncategorized callbacks.
struct TangoCameraIntrinsics TangoCameraIntrinsics
TangoErrorType TangoService_setBinder(void *jni_env, void *iBinder)
TangoErrorType TangoConfig_setInt32(TangoConfig config, const char *key, int32_t value)
The user has not given permission to save or change ADF files.
uint32_t confidence
Unused. Integer levels are determined by service.
const char * event_value
Description of the event value.