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

Proposal: Make rosrust_codegen::genmsg APIs public #169

Open
ssnover opened this issue Mar 17, 2022 · 0 comments
Open

Proposal: Make rosrust_codegen::genmsg APIs public #169

ssnover opened this issue Mar 17, 2022 · 0 comments

Comments

@ssnover
Copy link
Contributor

ssnover commented Mar 17, 2022

While I've managed to get messages generating using the existing macro by depending on rosrust_msg, I'd like a little finer control over the generation of the package. Currently the rosrust_codegen package does not make any of its APIs public other than the proc macro.

I'd like to have additional APIs made public, particularly from the genmsg module, in order to build a CLI tool which can generate a Rust source file from a ROS package which defines msg and srv files. This would allow me to generate a crate ros_msgs which contained modules for std_msgs, geometry_msgs, etc and then have a lib.rs file which re-exported them. This has the advantage of making the generated source available to read which can be helpful when debugging or when attempting to understand how to use the objects.

I'd like to get such a tool into this repo as well if that seems like an appropriate addition to you.

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

No branches or pull requests

1 participant