atolab / cdds-python Goto Github PK
View Code? Open in Web Editor NEWPython Binding for Chameleon
License: Eclipse Public License 2.0
Python Binding for Chameleon
License: Eclipse Public License 2.0
The readme has a nasty typo: A 'c' is missing in jsonpickle ...
The links is correct, the text is not -- Using the C&P on the text, I count install it (sic)
Was:
| - jsonpikle, please refer to the project page for installation informations.
Should be:
| - jsonpickle, please refer to the project page for installation informations.
Note: Github is also showing the 3 commands-block wrongly -- I can't see what wrong on the MD however.
Thanks --Albert
I tried to compile the ddstubs library under windows using Visual Studio with CMAKE. I managed to generate ddstubs.dll and made sure it is in CDDS_HOME path. But when I run test_flexy_reader, it always gives the following error:
runfile('C:/Users/user/Documents/DDS/flexy_reader.py', wdir='C:/Users/user/Documents/DDS')
Traceback (most recent call last):
File "<ipython-input-4-20e51ab979ab>", line 1, in <module>
runfile('C:/Users/user/Documents/DDS/flexy_reader.py', wdir='C:/Users/user/Documents/DDS')
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/user/Documents/DDS/flexy_reader.py", line 63, in <module>
testDynaTypes()
File "C:/Users/user/Documents/DDS/flexy_reader.py", line 49, in testDynaTypes
t = FlexyTopic(dp, 'KeyValue')
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\python_cdds-0.1.0-py3.7.egg\cdds\topic.py", line 17, in __init__
self.type_support = self.rt.get_key_value_type_support()
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\python_cdds-0.1.0-py3.7.egg\cdds\runtime.py", line 213, in get_key_value_type_support
return self.stublib.dds_bit_SKeySValue_desc
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\ctypes\__init__.py", line 369, in __getattr__
func = self.__getitem__(name)
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\ctypes\__init__.py", line 374, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'dds_bit_SKeySValue_desc' not found
I tried loading ddstubs.dll and call other functions but all gave this AttributeError: function not found. I think the dll is not well linked. Could I get some help on how to solve this?
The readme says there is support for all kind of dds-types. And the project goal is to have a python-binding of (cyclone) dds. However, all docs, test, an the current code (as far as I understand) only use flexytypes; or key-value.
Everywhere I look, python-types are serialised to json... so basically it is sending strings to other participants. When that is python code, it will work. However, dds is supposed to be language agnostic, isn’t? A python-program on a raspberry-Pi should be able to “talk” with an embedded-C system and java server. Or is my understanding of dds wrong?
So, please clarify. Either by updating the docs on how how to use those types. Or by adding the missing code/examples. Or, making clear it’s not-yet a prober Python-binding
Thanks
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.