-
Notifications
You must be signed in to change notification settings - Fork 7
Clap demo #15
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
base: main
Are you sure you want to change the base?
Clap demo #15
Conversation
Signed-off-by: avanmalleghem <antoine.vanmalleghem@botronics.be>
Signed-off-by: avanmalleghem <antoine.vanmalleghem@botronics.be>
|
@avanmalleghem so cool, thanks! I can't speak for @mxgrey, but the way I understood the ticket was to integrate clap into some of the existing examples. While useful to show how clap can be used with rclrs, I'd prefer if it weren't a separate package that we'd have to maintain. |
Ok I let some time to @mxgrey so that we have his point of view aswell and I modify it if needed :) Thanks for your feedback ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avanmalleghem what I meant is that given that the changes between this and the existing example are very minimal, I prefer not to maintain two packages that are almost identical. Could you integrate these changes into one of the existing examples? Thanks
|
Fair point ! Will do it asap (max this weekend) |
|
@avanmalleghem there's no rush 🙂 Thanks again for all the work! |
|
@esteve ok for you if I include clap into the |
|
@avanmalleghem I'd do it in https://github.com/ros2-rust/examples/tree/main/rclrs/minimal_pub_sub, as it's the most commonly used example. For example in the publisher and add a counter like you did in this PR. Could you make it so that if no arguments are passed, the example behaves like now? Thanks |
Signed-off-by: avanmalleghem <antoine.vanmalleghem@botronics.be>
Related to issue : #12
I tested it on Jazzy. Here is an example of working commands :