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 clamp header #85
Add clamp header #85
Conversation
This looks good to me, but I guess it deserves a bit more doxygen. It would be great if you could come up with something similar to what is done in other headers, e.g.: https://github.com/ros2/rcpputils/blob/master/include/rcpputils/join.hpp#L30-L39 |
That is my only feedback as well, to more thoroughly document the functions provided. Thanks for this contribution! |
Sure, I'll do it tomorrow morning. |
Also note that you will need to use |
209a32a
to
13ddbc7
Compare
* Add clamp header to avoid using boost or C++17 Signed-off-by: Victor Lopez <victor.lopez@pal-robotics.com>
Signed-off-by: Victor Lopez <victor.lopez@pal-robotics.com>
I've addressed the documentation and signing, please take a look when you have time. |
@emersonknapp can this be merged? Ideally we'd like to have this backported to Foxy as well to have ros_control still be compatible with Foxy. |
* Add clamp header * Add clamp header to avoid using boost or C++17 Signed-off-by: Victor Lopez <victor.lopez@pal-robotics.com> * Extend documentation of clamp methods Signed-off-by: Victor Lopez <victor.lopez@pal-robotics.com>
* Add clamp header * Add clamp header to avoid using boost or C++17 Signed-off-by: Victor Lopez <victor.lopez@pal-robotics.com> * Extend documentation of clamp methods Signed-off-by: Victor Lopez <victor.lopez@pal-robotics.com> Co-authored-by: Victor Lopez <3469405+v-lopez@users.noreply.github.com>
Uh, I just saw this in the We have a pretty consistent pattern of having the root cpp namespaces (and include namespace to match) be the same as the package name. In my opinion, this should be moved into the |
It was done in a separate namespace after discussion in #84, in case in the future similar functions are added and this ends up on a separate package or structure. |
I see, thanks for the pointer @v-lopez, but I have to really disagree with the direction. I think it should be in the I'll probably make pull requests to move it in rolling and deprecate it and provide the new location in foxy, unless someone convinces me otherwise. @emersonknapp @clalancette? |
That sounds good to me. |
Avoids temporarily avoids using boost or C++17
In the end I did not need to create another library target for this, since all templates. But I've put in the separate directory as discussed.
Fixes #84