-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export pprz messages into OpenDDS format #69
base: master
Are you sure you want to change the base?
Conversation
if name != 'stdout': | ||
f.close() | ||
|
||
def eval_int(expr): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is it used ?
else: | ||
f.opendds_type = 'void' | ||
|
||
if not type(f.array_type) == type(None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually something like if f.array_type is not None
works
|
||
t = pprz_template.PPRZTemplate() | ||
|
||
def generate_messages_h(directory, name, xml): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe find a better name, it is not a .h
file
as a side note, where and how are you using this OpenDDS ? |
I have to interface paparazzi with a system that uses OpenDDS - imagine a mission computer . The details are still in the working, but I wanted to share what I have so far. |
Without looking at the details, this is not really OpenDDS specific, right? Also is it a spec on the DDS or RTPS (RealTimePublishSubscribe) level? |
Good point - any system that understands IDL format can in theory use it. From FAQ:
Does that answer your question? |
For bookkeeping purposes, I am describing here what needs to happen to make this actually useful. Generated code
TopicsThe suggested topics follow the message class names:
Application codeIn order to make a useful application (such as OpenDDs - Pprzlink translator), the following is needed (for a simple "link" application):
|
Integrating DDS would be welcomed, maybe I shoud add it to the "list" ;) |
OpenDDS is an open source implementation of Publisher-Subscriber communication service (more info here http://opendds.org/).
This PR adds an option to generate OpenDDS compatible IDL format from messages.xml.
More information and an example of OpenDDS<-->Pprzlink communication will follow, but I am seeking some early feedback on the Python implementation. Plus this works as is.