Skip to content

Conversation

@spacewolfXfr
Copy link
Contributor

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)
Mael Feurgard and others added 29 commits March 17, 2023 15:46
…s_generation' into Python_message_class_generation
This reverts commit e551fbe.
Use a class for message fields, and expose unit, values enum, alt_uni…
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.

1 participant