File tree 10 files changed +578
-3
lines changed
VisionModules/MarkerTracker
10 files changed +578
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Ikaros-project.org
2
+ #
3
+ # Find the Phidgets includes and library
4
+ #
5
+ # This module defines
6
+ # PHIDGETS_INCLUDE_DIR
7
+ # PHIDGETS_LIBRARIES
8
+ # PHIDGETS_FOUND
9
+
10
+ # Checking OS
11
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
12
+
13
+ find_library (PHIDGETS_LIBRARY Phidget21)
14
+
15
+ if (PHIDGETS_INCLUDE_DIR1)
16
+ set (PHIDGETS_INCLUDE_DIR
17
+ ${PHIDGETS_INCLUDE_DIR1}
18
+ )
19
+ endif (PHIDGETS_INCLUDE_DIR1)
20
+
21
+ if (PHIDGETS_LIBRARY)
22
+ set (PHIDGETS_LIBRARIES
23
+ ${PHIDGETS_LIBRARY}
24
+ )
25
+
26
+ endif (PHIDGETS_LIBRARY)
27
+
28
+ endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
29
+
30
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
31
+ find_path (PHIDGETS_INCLUDE_DIR
32
+ NAMES
33
+ phidget21.h
34
+ PATHS
35
+ /usr/local/include
36
+ /usr/include
37
+ )
38
+
39
+ find_library (PHIDGETS_LIBRARIES
40
+ NAMES
41
+ phidget21
42
+ PATHS
43
+ /usr/local/lib
44
+ /usr/lib
45
+ )
46
+ endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
47
+
48
+ if (PHIDGETS_LIBRARIES)
49
+ message (STATUS "Found Phidget:" )
50
+ message (STATUS " - Includes: ${PHIDGETS_INCLUDE_DIR} " )
51
+ message (STATUS " - Libraries: ${PHIDGETS_LIBRARIES} " )
52
+ set (PHIDGETS_FOUND "YES" )
53
+ endif (PHIDGETS_LIBRARIES)
Original file line number Diff line number Diff line change @@ -22,5 +22,9 @@ if(FFMPEG_FOUND)
22
22
)
23
23
24
24
else ()
25
- MESSAGE ( STATUS "FFMpeg is not found. This module is not included into the build." )
25
+ message ( "" )
26
+ message (STATUS "Ikaros:" )
27
+ message (STATUS "FFMpeg is not found. This module is not included into the build." )
28
+ message (STATUS "Visit www.ikaros-project.org for information of module dependencies." )
29
+ message ( "" )
26
30
endif (FFMPEG_FOUND)
Original file line number Diff line number Diff line change @@ -25,5 +25,9 @@ if(YARP_FOUND AND ACE_FOUND)
25
25
)
26
26
27
27
else ()
28
- message (STATUS "Ikaros: YARP or ACE is not found. YARPPort module is not included into the build." )
28
+ message ( "" )
29
+ message (STATUS "Ikaros:" )
30
+ message (STATUS "YARP or ACE is not found. YARPPort module is not included into the build." )
31
+ message (STATUS "Visit www.ikaros-project.org for information of module dependencies." )
32
+ message ( "" )
29
33
endif (YARP_FOUND AND ACE_FOUND)
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
3
3
add_subdirectory (Dynamixel)
4
4
add_subdirectory (Epuck)
5
5
add_subdirectory (SSC32)
6
+ add_subdirectory (Phidgets)
6
7
7
8
set (SOURCE ${SOURCE} PARENT_SCOPE)
8
9
set (MODULES_INCLUDS ${MODULES_INCLUDS} PARENT_SCOPE)
Original file line number Diff line number Diff line change
1
+ set (CMAKE_INCLUDE_CURRENT_DIR ON )
2
+
3
+
4
+ # Phidgets
5
+ find_package (PHIDGETS)
6
+
7
+ # if all libraries found add source file, include dirs and libraries
8
+ if (PHIDGETS_FOUND)
9
+
10
+ set (SOURCE
11
+ ${SOURCE}
12
+ ${CMAKE_CURRENT_SOURCE_DIR} /Phidgets.cc
13
+ PARENT_SCOPE
14
+ )
15
+
16
+ set (MODULES_INCLUDS
17
+ ${MODULES_INCLUDS}
18
+ ${PHIDGETS_INCLUDE_DIRS}
19
+ PARENT_SCOPE
20
+ )
21
+ set (MODULES_LIBS
22
+ ${MODULES_LIBS}
23
+ ${PHIDGETS_LIBRARIES}
24
+ PARENT_SCOPE
25
+ )
26
+
27
+ else ()
28
+ message (STATUS "" )
29
+ message (STATUS "Ikaros" )
30
+ message (STATUS "Phidgets libs not found. Phidgets module is not included into the build." )
31
+ message (STATUS "Visit www.ikaros-project.org for information of module dependencies." )
32
+ message (STATUS "" )
33
+ endif (PHIDGETS_FOUND)
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+
3
+ <group title =" Phidgets Example" >
4
+
5
+
6
+ <module
7
+ class = " Phidgets"
8
+ name = " PhidgetsInstance"
9
+ serial = " 172795"
10
+ info = " true"
11
+ sensitivify = " 0"
12
+ ratiometric = " true"
13
+
14
+ />
15
+
16
+
17
+ <view name =" View" >
18
+ <object class =" BarGraph" module =" PhidgetsInstance" source =" ANALOG_OUTPUTS" x =" 0" y =" 0" />
19
+ <object class =" BarGraph" module =" PhidgetsInstance" source =" DIGITAL_OUTPUTS" x =" 1" y =" 0" />
20
+ <object class =" BarGraph" module =" PhidgetsInstance" source =" ATTACHED" x =" 0" y =" 1" />
21
+ </view >
22
+
23
+ </group >
24
+
You can’t perform that action at this time.
0 commit comments