Skip to content

Commit 18252c9

Browse files
RyanGordonqdot
authored andcommitted
* Removing lvdemo.c. Only need to build the dll
* Much improved error handling, better and cleaner VI's and wrapper functionality * Now uses IMAQ for image processing. Much more extensive library for machine vision. Signed-off-By: Ryan Gordon <[email protected]>
1 parent 7feae2b commit 18252c9

24 files changed

+21
-40
lines changed

wrappers/labview/CMakeLists.txt

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# C Labview Interface
33
######################################################################################
44
set_source_files_properties(libfreenect_lv.c PROPERTIES LANGUAGE CXX)
5-
set_source_files_properties(lvdemo.c PROPERTIES LANGUAGE CXX)
65

76
add_library (freenect_lv SHARED libfreenect_lv.c)
87
set_target_properties (freenect_lv PROPERTIES
@@ -14,28 +13,4 @@ target_link_libraries (freenect_lv freenect freenect_sync)
1413
install (TARGETS freenect_lv
1514
DESTINATION "${PROJECT_LIBRARY_INSTALL_DIR}")
1615
install (FILES "libfreenect_lv.h"
17-
DESTINATION ${PROJECT_INCLUDE_INSTALL_DIR})
18-
19-
set(THREADS_USE_PTHREADS_WIN32 true)
20-
find_package(Threads REQUIRED)
21-
22-
include_directories(${THREADS_PTHREADS_INCLUDE_DIR})
23-
24-
find_package(Threads REQUIRED)
25-
find_package(OpenGL REQUIRED)
26-
find_package(GLUT REQUIRED)
27-
28-
include_directories(${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} ${USB_INCLUDE_DIRS})
29-
30-
if (WIN32)
31-
set(MATH_LIB "")
32-
else(WIN32)
33-
set(MATH_LIB "m")
34-
endif()
35-
36-
add_executable(lvdemo lvdemo.c)
37-
38-
target_link_libraries(lvdemo freenect freenect_sync freenect_lv ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${MATH_LIB})
39-
40-
install (TARGETS lvdemo
41-
DESTINATION bin)
16+
DESTINATION ${PROJECT_INCLUDE_INSTALL_DIR})

wrappers/labview/README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
General information:
2-
These drivers are still very very experimental and while they work, they are not stable. I guarantee there will be problems we haven't discovered yet. Please keep this in mind!
2+
These drivers are still very very experimental and while they work, they are not 100% stable. There will probably be problems we haven't discovered yet. Please keep this in mind!
33

44
Needed first before this works:
55
1) Windows machine with a (preferably) new version of LabVIEW (8.6+). Older versions untested.
66
2) inf files (driver files) Please see: http://openkinect.org/wiki/Getting_Started_Windows and follow the Driver Installation instructions. You don't need the dependencies or the other instructions unless you actually want to mess with and compile the code that makes up the dlls.
77

88
Known issues:
9-
1) RGB image in example.vi isn't being color-converted correctly but works enough to provide as an example. To be diagnosed
9+
1) Only 11Bit Depth Format and RGB Format work currently. Support for the others is being added soon.
1010
2) It is IMPORTANT to make sure the Kinect is turned off (either by pressing the the "stop" button in example.vi or running "stop.vi" or manually removing physical power from the Kinect before working on the code. It's been seen that LabView will close without warning or explanation if these steps are not taken. If LabView crashes when you try and run it, unplug your Kinect physically, wait a few seconds, and plug it back in. Restarting your computer or LabVIEW may also help. Save your work often.
1111

1212
Information:
1313
- The depth frame image in example.vi uses an arbitrary gray-scale false-color rendering. The raw resultant array can be accessed from the vi "get depth frame.vi" included in libfreenect.lvlib. Please see: http://openkinect.org/wiki/Protocol_Documentation for more information
1414
- The RGB frame image in example.vi can be directly accessed from the raw resultant array in "get image frame.vi" included in libfreenect.lvlib. Please see: http://openkinect.org/wiki/Imaging_Information for more information
1515
- The dlls in this project are 32bit compiled with MSVC 2010
16-
- Only have tested 1 sychronous Kinect so far
16+
- Only has been tested with 1 Kinect
1717
- Timing is very important to frame rate speed. Please be considerate to cycles when developing algorithms on top of these drivers
1818

1919
If you have problems, email me at [email protected] or find me on irc.freenode.net #openkinect under the RyanGordon alias.

wrappers/labview/libfreenect_lv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ EXPORT char *freenect_lv_get_image_frame(int index, freenect_video_format fmt)
5757
{
5858
return NULL;
5959
}
60-
6160
return rgb;
6261
}
6362

34 KB
Binary file not shown.
-8.98 KB
Binary file not shown.
72 Bytes
Binary file not shown.
8.08 KB
Binary file not shown.
20 Bytes
Binary file not shown.
-32 Bytes
Binary file not shown.
11.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)