Skip to content

Type generator script - #3

Merged
g4sp3r merged 8 commits into
masterfrom
type_generator
Aug 19, 2025
Merged

Type generator script#3
g4sp3r merged 8 commits into
masterfrom
type_generator

Conversation

@g4sp3r

@g4sp3r g4sp3r commented Aug 18, 2025

Copy link
Copy Markdown
Collaborator

Initial implementation of script for automatic generation of user type header file from srv and msg files.

Done with the help of gen-ai to write majority of python glue code. It's not the prettiest thing but it works for now.

See readme.md in tools/type-gen for instructions on running.

Update submodules after pulling.

  • Updated "example_types.h" by running the script.
  • Renamed picoparams types to not clash with ros_xxx type naming from newly added types.
  • Fix field naming in examples to match actual from ROS msg definitions.

@g4sp3r g4sp3r mentioned this pull request Aug 18, 2025
@g4sp3r g4sp3r added the enhancement New feature or request label Aug 18, 2025
@g4sp3r
g4sp3r marked this pull request as draft August 18, 2025 07:24
@g4sp3r g4sp3r linked an issue Aug 18, 2025 that may be closed by this pull request
- BatterState publisher example for sequence types
- Update type generator
- Update example_types.h
@g4sp3r g4sp3r linked an issue Aug 18, 2025 that may be closed by this pull request
@g4sp3r

g4sp3r commented Aug 18, 2025

Copy link
Copy Markdown
Collaborator Author

Added sequence serialization functions as described in #4 to unlock more ROS types.

@g4sp3r
g4sp3r marked this pull request as ready for review August 18, 2025 20:57
@g4sp3r
g4sp3r merged commit c0be4c7 into master Aug 19, 2025
@g4sp3r
g4sp3r deleted the type_generator branch August 19, 2025 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for unbounded sequences How to generate use types?

1 participant