Skip to content
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

Python message class generation #169

Open
wants to merge 47 commits into
base: master
Choose a base branch
from

Conversation

spacewolfXfr
Copy link

Most notably add the libpprzlink-pygen-python-install rule to the Toplevel Makefile

It allows to generate Python classes for each message specified in the messages.xml file. This, in turns, allows safe Python-based development based on these messages' classes (typing enforced, fixed messages attributes).

Mael Feurgard and others added 30 commits February 20, 2023 10:50
Annoted PprzMessage method `fieldbintypes` to be static
dictionnary-based implementation
Added type conversion from C-string to Python-string
Added access to the PprzMessageField structures from PprzMessage
Integrated into statically generated message classes
(Illegal, that is cannot be directly used for Python variables)
Added inspector program for testing
Adapted fix for illegal characters in variables
Adjusted file generation
(one file per message class, regroups all PprzMessage_[message name])
-> simplify generic 'from generated import *' for above layers
(Avoid execution rights for .py scripts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant