Astra SDK  v2.1.3
astra_device_control.h
1 // This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
2 // Copyright (c) 2015-2017 Orbbec 3D
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 // Be excellent to each other.
17 #ifndef _ASTRA_DEIVCE_CONTROL_H_
18 #define _ASTRA_DEIVCE_CONTROL_H_
19 
20 #include <astra_core/capi/astra_defines.h>
21 #include <astra_core/capi/astra_types.h>
22 #include <stdbool.h>
23 
24 ASTRA_BEGIN_DECLS
25 
26 typedef struct {
27  const char *uri;
28  const char *command;
29  char *out;
30  int32_t outLength;
31  astra_status_t result;
33 
34 typedef struct
35 {
36  float l_intr_p[4];//[fx,fy,cx,cy]
37  float r_intr_p[4];//[fx,fy,cx,cy]
38  float r2l_r[9];//[r00,r01,r02;r10,r11,r12;r20,r21,r22]
39  float r2l_t[3];//[t1,t2,t3]
40  float l_k[5];//[k1,k2,p1,p2,k3]
41  float r_k[5];
43 
56 ASTRA_API_EX astra_status_t astra_distortion_enable(astra_streamsetconnection_t connect, int32_t status);
57 ASTRA_API_EX astra_status_t astra_set_ir_gain_value(astra_streamsetconnection_t connect, int32_t value);
58 ASTRA_API_EX astra_status_t astra_set_ir_exposure_value(astra_streamsetconnection_t connect, int32_t value);
59 ASTRA_API_EX astra_status_t astra_ldp_enable(astra_streamsetconnection_t connect, bool enable);
60 ASTRA_API_EX astra_status_t astra_laser_enable(astra_streamsetconnection_t connect, bool enable);
61 ASTRA_API_EX astra_status_t astra_fan_enable(astra_streamsetconnection_t connect, bool enable);
62 ASTRA_API_EX astra_status_t astra_fan_status(astra_streamsetconnection_t connect, int32_t* value);
63 ASTRA_API_EX astra_status_t astra_fan_flash_enable(astra_streamsetconnection_t connect, bool enable);
64 ASTRA_API_EX astra_status_t astra_fan_flash_status(astra_streamsetconnection_t connect, int32_t* value);
65 
66 ASTRA_API_EX astra_status_t astra_get_orbbec_camera_params(astra_streamsetconnection_t connect, orbbec_camera_params* params);
67 ASTRA_API_EX astra_status_t astra_get_ir_gain_value(astra_streamsetconnection_t connect, int32_t* value);
68 ASTRA_API_EX astra_status_t astra_get_ir_exposure_value(astra_streamsetconnection_t connect, int32_t* value);
71 ASTRA_END_DECLS
72 
73 #endif
ASTRA_API_EX astra_status_t astra_distortion_enable(astra_streamsetconnection_t connect, int32_t status)
Definition: astra_device_control.h:26
Definition: astra_device_control.h:35