libkovan  1
The kovan standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
depth.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright 2012 KISS Institute for Practical Robotics *
3  * *
4  * This file is part of libkovan. *
5  * *
6  * libkovan is free software: you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation, either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * libkovan is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with libkovan. Check the LICENSE file in the project root. *
18  * If not, see <http://www.gnu.org/licenses/>. *
19  **************************************************************************/
20 
29 #ifndef _DEPTH_H_
30 #define _DEPTH_H_
31 
32 #include <stdint.h>
33 
34 #include <kovan/depth_resolution.h>
35 #include <kovan/export.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
50 
58 
70 
83 
95 EXPORT_SYM int set_depth_orientation(int orientation);
96 
105 
114 
125 
136 
153 EXPORT_SYM int get_depth_value(int row, int column);
154 
168 EXPORT_SYM point3 get_depth_world_point(int row, int column);
169 
183 EXPORT_SYM int get_depth_world_point_x(int row, int column);
184 
198 EXPORT_SYM int get_depth_world_point_y(int row, int column);
199 
213 EXPORT_SYM int get_depth_world_point_z(int row, int column);
214 
215 #ifdef __linux__
216 static const int INVALID_DEPTH = 2147483647;
217 #else
218 static const int INVALID_DEPTH = INT32_MAX;
219 #endif
220 
221 
222 EXPORT_SYM int depth_scanline_update(int row);
223 
225 
227 
228 EXPORT_SYM int get_depth_scanline_object_x(int object_num);
229 
230 EXPORT_SYM int get_depth_scanline_object_y(int object_num);
231 
232 EXPORT_SYM int get_depth_scanline_object_z(int object_num);
233 
234 EXPORT_SYM int get_depth_scanline_object_size(int object_num);
235 
236 EXPORT_SYM int get_depth_scanline_object_angle(int object_num);
237 
238 #ifdef __cplusplus
239 }
240 #endif
241 
242 #endif /* _DEPTH_H_ */
EXPORT_SYM int set_depth_orientation(int orientation)
Contains the definiton of the enum DepthCameraResolution.
EXPORT_SYM int get_depth_scanline_object_size(int object_num)
EXPORT_SYM int get_depth_scanline_object_z(int object_num)
EXPORT_SYM int get_depth_scanline_object_angle(int object_num)
Definition: geom.h:36
EXPORT_SYM int get_depth_scanline_object_x(int object_num)
enum DepthResolution_ DepthResolution
EXPORT_SYM DepthResolution get_depth_resolution()
EXPORT_SYM int depth_update()
EXPORT_SYM int get_depth_scanline_object_count()
static const int INVALID_DEPTH
Definition: depth.h:218
EXPORT_SYM int depth_open()
EXPORT_SYM int get_depth_scanline_object_y(int object_num)
EXPORT_SYM int set_depth_resolution(DepthResolution resolution)
EXPORT_SYM point3 get_depth_world_point(int row, int column)
EXPORT_SYM int get_depth_image_width()
EXPORT_SYM int depth_scanline_update(int row)
EXPORT_SYM int get_depth_value(int row, int column)
EXPORT_SYM int get_depth_world_point_y(int row, int column)
EXPORT_SYM int get_depth_world_point_z(int row, int column)
EXPORT_SYM int depth_close()
#define EXPORT_SYM
Definition: export.h:7
EXPORT_SYM int get_depth_orientation()
EXPORT_SYM int get_depth_world_point_x(int row, int column)
EXPORT_SYM int get_depth_image_height()
EXPORT_SYM point3 get_depth_scanline_object_point(int object_num)