swift-nav / libswiftnav-python Goto Github PK
View Code? Open in Web Editor NEWDeprecated
Deprecated
Since this commit in libswiftnav:
This repo broken because single_diff.h
no longer exists (renamed to observation.h
).
May be related to #18.
libswiftnav's python bindings are broken, once again. Here is an example from Rose's machine:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning:
"Using deprecated NumPy API, disable it by " "#defining
NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
In file included from swiftnav/coord_system.c:257:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:26:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1629:1: warning:
unused function '_import_array' [-Wunused-function]
_import_array(void)
^
In file included from swiftnav/coord_system.c:258:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ufuncobject.h:317:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning:
unused function '_import_umath' [-Wunused-function]
_import_umath(void)
^
swiftnav/coord_system.c:8077:28: warning: unused function
'__Pyx_PyObject_AsString' [-Wunused-function]
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
^
swiftnav/coord_system.c:8074:32: warning: unused function
'__Pyx_PyUnicode_FromString' [-Wunused-function]
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
^
swiftnav/coord_system.c:328:29: warning: unused function
'__Pyx_Py_UNICODE_strlen' [-Wunused-function]
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
^
swiftnav/coord_system.c:8189:33: warning: unused function
'__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
^
swiftnav/coord_system.c:8214:33: warning: unused function
'__Pyx_PyInt_FromSize_t' [-Wunused-function]
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
^
swiftnav/coord_system.c:7436:48: warning: unused function
'__pyx_t_float_complex_from_parts' [-Wunused-function]
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_fro...
^
swiftnav/coord_system.c:7446:30: warning: unused function '__Pyx_c_eqf'
[-Wunused-function]
static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex a, __pyx_...
^
swiftnav/coord_system.c:7449:48: warning: unused function '__Pyx_c_sumf'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_floa...
^
swiftnav/coord_system.c:7455:48: warning: unused function '__Pyx_c_difff'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_flo...
^
swiftnav/coord_system.c:7467:48: warning: unused function '__Pyx_c_quotf'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_flo...
^
swiftnav/coord_system.c:7474:48: warning: unused function '__Pyx_c_negf'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_floa...
^
swiftnav/coord_system.c:7480:30: warning: unused function '__Pyx_c_is_zerof'
[-Wunused-function]
static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex a) {
^
swiftnav/coord_system.c:7483:48: warning: unused function '__Pyx_c_conjf'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_flo...
^
swiftnav/coord_system.c:7497:52: warning: unused function '__Pyx_c_powf'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_...
^
swiftnav/coord_system.c:7556:49: warning: unused function
'__pyx_t_double_complex_from_parts' [-Wunused-function]
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_f...
^
swiftnav/coord_system.c:7566:30: warning: unused function '__Pyx_c_eq'
[-Wunused-function]
static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex a, __pyx_...
^
swiftnav/coord_system.c:7569:49: warning: unused function '__Pyx_c_sum'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_doub...
^
swiftnav/coord_system.c:7575:49: warning: unused function '__Pyx_c_diff'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_dou...
^
swiftnav/coord_system.c:7587:49: warning: unused function '__Pyx_c_quot'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_dou...
^
swiftnav/coord_system.c:7594:49: warning: unused function '__Pyx_c_neg'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_doub...
^
swiftnav/coord_system.c:7600:30: warning: unused function '__Pyx_c_is_zero'
[-Wunused-function]
static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex a) {
^
swiftnav/coord_system.c:7603:49: warning: unused function '__Pyx_c_conj'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_dou...
^
swiftnav/coord_system.c:7617:53: warning: unused function '__Pyx_c_pow'
[-Wunused-function]
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_...
^
swiftnav/coord_system.c:7817:32: warning: unused function
'__Pyx_PyInt_From_long' [-Wunused-function]
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
^
swiftnav/coord_system.c:7843:27: warning: function '__Pyx_PyInt_As_long' is not
needed and will not be emitted [-Wunneeded-internal-declaration]
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
^
swiftnav/coord_system.c:4483:32: warning: unused function
'__pyx_f_5numpy_PyArray_MultiIterNew1' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyOb...
^
swiftnav/coord_system.c:4533:32: warning: unused function
'__pyx_f_5numpy_PyArray_MultiIterNew2' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyOb...
^
swiftnav/coord_system.c:4583:32: warning: unused function
'__pyx_f_5numpy_PyArray_MultiIterNew3' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyOb...
^
swiftnav/coord_system.c:4633:32: warning: unused function
'__pyx_f_5numpy_PyArray_MultiIterNew4' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyOb...
^
swiftnav/coord_system.c:4683:32: warning: unused function
'__pyx_f_5numpy_PyArray_MultiIterNew5' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyOb...
^
swiftnav/coord_system.c:5451:27: warning: unused function
'__pyx_f_5numpy_set_array_base' [-Wunused-function]
static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *_...
^
swiftnav/coord_system.c:5539:32: warning: unused function
'__pyx_f_5numpy_get_array_base' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObje...
^
35 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk build/temp.macosx-10.10-x86_64-2.7/swiftnav/coord_system.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lm -lswiftnav -o build/lib.macosx-10.10-x86_64-2.7/swiftnav/coord_system.so -g
cythoning swiftnav/nav_msg.pyx to swiftnav/nav_msg.c
building 'swiftnav.nav_msg' extension
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I. -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c swiftnav/nav_msg.c -o build/temp.macosx-10.10-x86_64-2.7/swiftnav/nav_msg.o -O0 -g
swiftnav/nav_msg.c:2616:28: warning: unused function '__Pyx_PyObject_AsString'
[-Wunused-function]
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
^
swiftnav/nav_msg.c:2613:32: warning: unused function
'__Pyx_PyUnicode_FromString' [-Wunused-function]
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
^
swiftnav/nav_msg.c:330:29: warning: unused function '__Pyx_Py_UNICODE_strlen'
[-Wunused-function]
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
^
swiftnav/nav_msg.c:2728:33: warning: unused function '__Pyx_PyIndex_AsSsize_t'
[-Wunused-function]
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
^
swiftnav/nav_msg.c:2753:33: warning: unused function '__Pyx_PyInt_FromSize_t'
[-Wunused-function]
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
^
swiftnav/nav_msg.c:2251:32: warning: unused function '__Pyx_PyInt_From_long'
[-Wunused-function]
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
^
swiftnav/nav_msg.c:2277:27: warning: function '__Pyx_PyInt_As_long' is not
needed and will not be emitted [-Wunneeded-internal-declaration]
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
^
swiftnav/nav_msg.c:2382:26: warning: function '__Pyx_PyInt_As_int' is not needed
and will not be emitted [-Wunneeded-internal-declaration]
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
^
8 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk build/temp.macosx-10.10-x86_64-2.7/swiftnav/nav_msg.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lm -lswiftnav -o build/lib.macosx-10.10-x86_64-2.7/swiftnav/nav_msg.so -g
cythoning swiftnav/pvt.pyx to swiftnav/pvt.c
building 'swiftnav.pvt' extension
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I. -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c swiftnav/pvt.c -o build/temp.macosx-10.10-x86_64-2.7/swiftnav/pvt.o -O0 -g
swiftnav/pvt.c:1759:85: error: too few arguments to function call, expected 5,
have 4
calc_PVT(__pyx_t_8, __pyx_v_nav_meas_array, (&__pyx_v_s->soln), (&__pyx_v_s->dops));
~~~~~~~~ ^
/usr/local/include/libswiftnav/pvt.h:82:1: note: 'calc_PVT' declared here
s8 calc_PVT(const u8 n_used,
^
1 error generated.
error: command 'clang' failed with exit status 1
Found with the current libswiftnav master at a2efee3dbb454368e5e9ebe5d6f504bf4e80aa20 and current libswiftnav-python master at b1cecbb.
As part of setting up the SITL testing framework, getting libswiftnav-python setup has been a bit of an ordeal, and is so for every new machine requiring it as a dependency. I have some setup history locally that I'm going to casually commit so it'll be easier to do this in the future. Hopefully this will fix the issue of libswiftnav-python and libswiftnav being out of sync.
/cc @mfine
They keep getting out of sync, leading to confusing error messages on build.
Get the error message:
swiftnav/nav_msg.c: In function ‘__pyx_pf_8swiftnav_7nav_msg_6NavMsg_2update’:
swiftnav/nav_msg.c:855:17: error: too many arguments to function ‘nav_msg_update’
__pyx_v_tow = nav_msg_update((&__pyx_v_self->state), __pyx_t_1, __pyx_t_2);
^
In file included from swiftnav/nav_msg.c:251:0:
/usr/local/include/libswiftnav/nav_msg.h:41:5: note: declared here
s32 nav_msg_update(nav_msg_t *n, s32 corr_prompt_real);
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Ubuntu 14.04 LTS
Piksi Tools v0.16.1, built from source
libswiftnav-python cloned 21/05/2015
On building libswiftnav-python with current libswiftnav, I get:
swiftnav/dgnss_management.c:5099:539: error: too few arguments to function call, expected 6, have 5
measure_b_with_external_ambs((&(___Pyx_BufPtrCContig1d(__pyx_t_5numpy_double_t *, _pyx_pybuffernd_ref_ecef.rcbuffer->pybuffer.buf, __pyx_t_18, _pyx_pybuffernd_ref_ecef.diminfo[0].strides))), __pyx_v_n, (&(__pyx_v_sdiffs[0])), (&(___Pyx_BufPtrCContig1d(__pyx_t_5numpy_double_t _, _pyx_pybuffernd_ambs.rcbuffer->pybuffer.buf, __pyx_t_20, _pyx_pybuffernd_ambs.diminfo[0].strides))), (&(___Pyx_BufPtrCContig1d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_b.rcbuffer->pybuffer.buf, __pyx_t_21, __pyx_pybuffernd_b.diminfo[0].strides))));
I attempted to build libswiftnav-python with a:
"python setup.py build"
and gcc chokes on a cython generated file:
"swiftnav/dgnss_management.c:5143:3: error: too few arguments to function ‘measure_b_with_external_ambs’"
My Cython version is 0.20.2, and I am running Ubuntu 14.10 Utopic.
John
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.