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

Add Python support for generate_parameter_library #110

Merged

Conversation

pac48
Copy link
Collaborator

@pac48 pac48 commented May 15, 2023

This PR adds Python support for generate_parameter_library, which is a feature that has already been requested #98. All existing features should be supported for the generated Python module: including:

  1. integration into the build system (e.g. setup.py)
  2. automatically declaring and updating parameters
  3. automatically declaring and updating runtime parameters
  4. parameter validation
  5. supported validators
  6. handle user-defined validators

I added an example for the generated Python module in minimal_publisher.py.

Note that the Python code does not separate out stack and heap-allocated parameters and is not designed for multi-threading.

pac48 and others added 30 commits July 28, 2022 19:21
Signed-off-by: Tyler Weaver <tylerjw@gmail.com>
…library

� Conflicts:
�	example/src/main.cpp
�	generate_parameter_library_py/generate_parameter_library_py/main.py
Signed-off-by: Tyler Weaver <tyler@picknik.ai>
Copy link
Contributor

@tylerjw tylerjw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 thank you for this! Looking forward to the docs generation PR too.

@tylerjw tylerjw merged commit 95810e6 into PickNikRobotics:main May 15, 2023
5 checks passed
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

2 participants