mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
Added bindings for iDistance sensors.
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
52b3087de9
commit
57f03b79aa
@ -4,5 +4,6 @@ upm_mixed_module_init (NAME hcsr04
|
||||
C_SRC hcsr04.c
|
||||
CPP_HDR hcsr04.hpp
|
||||
CPP_SRC hcsr04.cxx
|
||||
IFACE_HDR iDistance.hpp
|
||||
CPP_WRAPS_C
|
||||
REQUIRES mraa utilities-c)
|
||||
|
@ -1,7 +1,17 @@
|
||||
#ifdef SWIGPYTHON
|
||||
%module (package="pyupm_new_interfaces") hcsr04
|
||||
#endif
|
||||
|
||||
%import "interfaces/new_interfaces.i"
|
||||
|
||||
%include "../common_top.i"
|
||||
|
||||
/* BEGIN Java syntax ------------------------------------------------------- */
|
||||
#ifdef SWIGJAVA
|
||||
%typemap(javaimports) SWIGTYPE %{
|
||||
import upm_new_interfaces.*;
|
||||
%}
|
||||
|
||||
JAVA_JNI_LOADLIBRARY(javaupm_hcsr04)
|
||||
#endif
|
||||
/* END Java syntax */
|
||||
|
@ -2,4 +2,5 @@ upm_mixed_module_init (NAME lidarlitev3
|
||||
DESCRIPTION "Optical Distance Measurement Sensor"
|
||||
CPP_HDR lidarlitev3.hpp
|
||||
CPP_SRC lidarlitev3.cxx
|
||||
IFACE_HDR iDistance.hpp
|
||||
REQUIRES mraa)
|
||||
|
@ -1,7 +1,17 @@
|
||||
#ifdef SWIGPYTHON
|
||||
%module (package="pyupm_new_interfaces") lidarlitev3
|
||||
#endif
|
||||
|
||||
%import "interfaces/new_interfaces.i"
|
||||
|
||||
%include "../common_top.i"
|
||||
|
||||
/* BEGIN Java syntax ------------------------------------------------------- */
|
||||
#ifdef SWIGJAVA
|
||||
%typemap(javaimports) SWIGTYPE %{
|
||||
import upm_new_interfaces.*;
|
||||
%}
|
||||
|
||||
JAVA_JNI_LOADLIBRARY(javaupm_lidarlitev3)
|
||||
#endif
|
||||
/* END Java syntax */
|
||||
|
@ -2,4 +2,5 @@ set (libname "maxsonarez")
|
||||
set (libdescription "MaxSonar EZ Family of Ultrasonic Rangers")
|
||||
set (module_src ${libname}.cxx)
|
||||
set (module_hpp ${libname}.hpp)
|
||||
set (module_iface iDistance.hpp)
|
||||
upm_module_init(mraa)
|
||||
|
@ -4,6 +4,7 @@ upm_mixed_module_init (NAME mb704x
|
||||
C_SRC mb704x.c
|
||||
CPP_HDR mb704x.hpp
|
||||
CPP_SRC mb704x.cxx
|
||||
IFACE_HDR iDistance.hpp
|
||||
FTI_SRC mb704x_fti.c
|
||||
CPP_WRAPS_C
|
||||
REQUIRES mraa utilities-c)
|
||||
|
@ -1,7 +1,17 @@
|
||||
#ifdef SWIGPYTHON
|
||||
%module (package="pyupm_new_interfaces") mb704x
|
||||
#endif
|
||||
|
||||
%import "interfaces/new_interfaces.i"
|
||||
|
||||
%include "../common_top.i"
|
||||
|
||||
/* BEGIN Java syntax ------------------------------------------------------- */
|
||||
#ifdef SWIGJAVA
|
||||
%typemap(javaimports) SWIGTYPE %{
|
||||
import upm_new_interfaces.*;
|
||||
%}
|
||||
|
||||
JAVA_JNI_LOADLIBRARY(javaupm_mb704x)
|
||||
#endif
|
||||
/* END Java syntax */
|
||||
|
@ -2,4 +2,5 @@ set (libname "rfr359f")
|
||||
set (libdescription "Infrared Distance Interrupter")
|
||||
set (module_src ${libname}.cxx)
|
||||
set (module_hpp ${libname}.hpp)
|
||||
set (module_iface iDistance.hpp)
|
||||
upm_module_init(mraa)
|
||||
|
@ -4,6 +4,7 @@ upm_mixed_module_init (NAME urm37
|
||||
C_SRC urm37.c
|
||||
CPP_HDR urm37.hpp
|
||||
CPP_SRC urm37.cxx
|
||||
IFACE_HDR iDistance.hpp
|
||||
FTI_SRC urm37_fti.c
|
||||
CPP_WRAPS_C
|
||||
REQUIRES mraa utilities-c)
|
||||
|
@ -1,7 +1,16 @@
|
||||
#ifdef SWIGPYTHON
|
||||
%module (package="pyupm_new_interfaces") urm37
|
||||
#endif
|
||||
|
||||
%import "interfaces/new_interfaces.i"
|
||||
%include "../common_top.i"
|
||||
|
||||
/* BEGIN Java syntax ------------------------------------------------------- */
|
||||
#ifdef SWIGJAVA
|
||||
%typemap(javaimports) SWIGTYPE %{
|
||||
import upm_new_interfaces.*;
|
||||
%}
|
||||
|
||||
JAVA_JNI_LOADLIBRARY(javaupm_urm37)
|
||||
#endif
|
||||
/* END Java syntax */
|
||||
|
Reference in New Issue
Block a user