libkovan  1
The kovan standard library
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 "depth_resolution.h"
35 #include "export.h"
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
50 
58 
70 
83 
95 VF EXPORT_SYM int set_depth_orientation(int orientation);
96 
105 
114 
125 
136 
153 VF EXPORT_SYM int get_depth_value(int row, int column);
154 
168 VF EXPORT_SYM point3 get_depth_world_point(int row, int column);
169 
183 VF EXPORT_SYM int get_depth_world_point_x(int row, int column);
184 
198 VF EXPORT_SYM int get_depth_world_point_y(int row, int column);
199 
213 VF 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 
232 VF EXPORT_SYM int depth_scanline_update(int row);
233 
242 
251 
260 
269 
278 
287 
296 
305 
314 
323 
332 
341 
350 
358 VF EXPORT_SYM int get_depth_scanline_object_size(int object_num);
359 
369 VF EXPORT_SYM int get_depth_scanline_object_angle(int object_num);
370 
371 typedef enum SortMethod_
372 {
376 } SortMethod;
377 
379 
381 
382 VFL
383 
384 #ifdef __cplusplus
385 }
386 #endif
387 
388 #endif /* _DEPTH_H_ */
Contains the definiton of the enum DepthCameraResolution.
VF EXPORT_SYM point3 get_depth_scanline_object_farthest(int object_num)
VF EXPORT_SYM DepthResolution get_depth_resolution()
VF EXPORT_SYM int get_depth_scanline_object_farthest_x(int object_num)
VF EXPORT_SYM int get_depth_orientation()
enum SortMethod_ SortMethod
VF EXPORT_SYM SortMethod get_depth_scanline_sorting_method()
VF EXPORT_SYM int get_depth_scanline_object_center_z(int object_num)
VF EXPORT_SYM int get_depth_value(int row, int column)
VF EXPORT_SYM point3 get_depth_scanline_object_center(int object_num)
VF EXPORT_SYM int get_depth_scanline_object_count()
VF EXPORT_SYM void set_depth_scanline_sorting_method(SortMethod method)
Definition: geom.h:37
enum DepthResolution_ DepthResolution
VF EXPORT_SYM int get_depth_scanline_object_farthest_z(int object_num)
VF EXPORT_SYM int get_depth_scanline_object_nearest_x(int object_num)
VF EXPORT_SYM int get_depth_image_height()
VF EXPORT_SYM int depth_open()
static const int INVALID_DEPTH
Definition: depth.h:218
VF EXPORT_SYM int get_depth_scanline_object_farthest_y(int object_num)
VF EXPORT_SYM int get_depth_world_point_z(int row, int column)
VF EXPORT_SYM int depth_close()
VF EXPORT_SYM int get_depth_scanline_object_size(int object_num)
Definition: depth.h:373
VF EXPORT_SYM int get_depth_world_point_x(int row, int column)
VF EXPORT_SYM point3 get_depth_scanline_object_nearest(int object_num)
VF EXPORT_SYM point3 get_depth_world_point(int row, int column)
VF EXPORT_SYM int get_depth_scanline_object_center_y(int object_num)
VF EXPORT_SYM int depth_update()
#define VF
Definition: vtable.h:10
VF EXPORT_SYM int depth_scanline_update(int row)
#define VFL
Definition: vtable.h:11
SortMethod_
Definition: depth.h:371
VF EXPORT_SYM int set_depth_resolution(DepthResolution resolution)
#define EXPORT_SYM
Definition: export.h:7
Definition: depth.h:374
VF EXPORT_SYM int get_depth_scanline_object_nearest_y(int object_num)
VF EXPORT_SYM int get_depth_scanline_object_center_x(int object_num)
VF EXPORT_SYM int get_depth_scanline_object_angle(int object_num)
VF EXPORT_SYM int set_depth_orientation(int orientation)
VF EXPORT_SYM int get_depth_world_point_y(int row, int column)
Definition: depth.h:375
VF EXPORT_SYM int get_depth_image_width()
VF EXPORT_SYM int get_depth_scanline_object_nearest_z(int object_num)