-
Notifications
You must be signed in to change notification settings - Fork 54
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
[env] Add set_env_var
function
#150
Conversation
This commit adds the `set_env_var` function, which is essentially an `rcpputils` wrapper around `rcutils_set_env`. In doing so, also: - Rename `get_env.{hpp,cpp}` to `env.{hpp,cpp}` - Update FEATURES.md with new signature Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
Also, renamed `test_get_env.cpp` to `test_env.cpp` to reflect the addition of a new function. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
Running CI. |
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.
lgtm
About the macOS test failures: these have been reported as flaky in ros2/rcl#750, and they don't look related. Oddly, these tests also failed in a CI run for ros2/rcl#946. About the windows test failures: not sure what's going on. All failing tests seem to be of the "graceful termination" type. |
It's better to deprecate the header on a tick-tock cycle rather than removing it outright, so this commit reverts the deletion and actually deprecates the header. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
I just realized that the Having said that, I've reverted the deletion of |
Ah, i missed that, sorry. there should be a lifecycle for deprecation. |
Running CI again following 18b406b. Repos file: https://gist.github.com/aprotyas/96874af9175859555af0144398e0bf25 |
Two approvals and CI is green, so I'll merge this in. Thanks for the reviews! |
This PR adds the
set_env_var
function, which is essentially anrcpputils
wrapper aroundrcutils_set_env
.I've also renamed
get_env.{hpp,cpp}
toenv.{hpp,cpp}
given the addition of a new method to the "environment helper" functions.Downstream PRs necessitated by this change:
rcpputils
header rcl_logging#81rcpputils
header rmw_implementation#198rcpputils
header ros-perception/image_common#211Closes #149.
Signed-off-by: Abrar Rahman Protyasha aprotyas@u.rochester.edu