aduvenhage / ais-decoder Goto Github PK
View Code? Open in Web Editor NEWC++ AIS Decoder (with python bindings)
License: MIT License
C++ AIS Decoder (with python bindings)
License: MIT License
The __builtin_bswap64 causes problems on Windows (Visual Studio 2022 with cpp 20)
_byteswap_uint64 seems like a solution to this, but I haven't tried yet - will do in a couple of days.
Regards
Hi, I ran into an issue when building the Python module on Windows 10. I am using the Annaconda command prompt because I don't have Python on my Windows PATH.
I have Visual Studio, CMake and SWIG installed (SWIG was installed through Annaconda). I also used Chocolatey to get the 'make' command in setup.py to work on Windows.
I cloned the repository, changed to the 'python' directory and ran 'python setup.py build'. I got the error:
'ais_decoder_wrap.cpp(3132): fatal error C1083: Cannot open include file: 'ais_decoder/ais_quick.h': No such file or directory'.
The directory 'ais_decoder/' was created inside 'python' but it didn't contain ais_quick.h I got the same issue when I tried to building manually with CMake (into the python directory) and then runnning 'python setyp.py install'.
I tried the manual build but wasn't able to get the c++ command to work (I tried installing g++ instead but the installation failed).
This project would be perfect for my task, any help would be greatly appreciated. Thank you!
A problem with the following messages from Transas simulator:
!AIVDO,2,1,7,,53`t?>@2Dvop4i0P400u>3<0000000000000001JD@>D:3?00Gh00000000,0*7C
$AITXT,1,1,22,AIS: external GNSS in use*41
Might be wrong but still get parsed fine by maritec.co.za
The second one complains on CRC.
The readme says: "Do the following test:
#!/usr/bin/env python3
import ais_decoder
str = "!AIVDM,1,1,,A,13HOI:0P0000VOHLCnHQKwvL05Ip,0*23\n"
ais_decoder.pushAisSentence(str, len(str))
n = ais_decoder.numAisMessages()
msg = ais_decoder.popAisMessage().asdict()
Running this test gives me
Traceback (most recent call last):
File "./ais-test.py", line 5, in <module>
ais_decoder.pushAisSentence(str, len(str))
AttributeError: module 'ais_decoder' has no attribute 'pushAisSentence'
on Ubuntu 20.04.
I run into issues when building the python docker container. It seems that the repo for jessie images has moved so doing some apt-get install tasks fail. This can be fixed by changing the base image to python3.6-stretch
I have problems installing the requirements.txt file inside docker. I get "
Installing collected packages: six, python-dateutil, pytz, pandas
Running setup.py install for pandas: started
Running setup.py install for pandas: finished with status 'error'
This can be fixed by having "RUN pip install pandas" and "RUN pip install numpy" in the dockerfile. This seems to be known pip issue.
I followed the installation instructions on Ubuntu 20.04:
git clone https://github.com/aduvenhage/ais-decoder.git
mkdir ais-decoder-build
cd ais-decoder-build
cmake ../ais-decoder -DCMAKE_BUILD_TYPE=RELEASE
The last command gave me an error:
$ cmake ../ais-decoder -DCMAKE_BUILD_TYPE=RELEASE
CMake Error: The source directory "/home/steen/radio/ais-decoder/ais-decoder" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
I typed cd ..
and the cmake command worked. So I'm not sure what the -build directory is for.
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.