-
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
Make library attributes visible #128
Conversation
Signed-off-by: Nikolai Morin <nikolai.morin@apex.ai>
@wjwwood Could you review? |
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.
I think it would be better if this were exposed via a function(s), but I don't have a strong reason why.
@clalancette @mjeronimo any feedback (as maintainers)?
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.
This seems fine - though my personal preference would be to expose a new function find_library_in_path
- and keep these implementation details hidden
Exposing these details seems pretty ugly. I have to agree with @wjwwood and @emersonknapp that a function would be much nicer here. |
@clalancette @emersonknapp
( So the only function that we could extract into here is something like |
It does seem that there is a function or two that wants to come out rather than exposing the platform details. I'm for encapsulating the platform-specifics in the implementation file and providing platform independent functions in the header. |
Signed-off-by: Nikolai Morin <nikolai.morin@apex.ai>
I changed it to expose only a function. |
Signed-off-by: Nikolai Morin <nikolai.morin@apex.ai>
Signed-off-by: Nikolai Morin <nikolai.morin@apex.ai>
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.
Oh, sorry. Can you just add one test to cover this? Should be a simple one.
@clalancette It is covered by the existing test since I modified |
Oh yeah, that counts. OK, fine by me. I'll add my approval, but you should take care of @emersonknapp 's comments as well. |
Signed-off-by: nnmm <nnmmgit@gmail.com>
Signed-off-by: Nikolai Morin <nikolai.morin@apex.ai>
Gist: https://gist.githubusercontent.com/emersonknapp/d8fce7350957a70f43a565b4f7f62c21/raw/b486b71a66a8779f7512fbdf779c11b71c4c5544/ros2.repos |
@emersonknapp I assume that means it's good to merge? |
@emersonknapp I'm gonna merge this so we can move the other pr forward. 👍 |
This change was requested in ros2/rclcpp#1452 (comment): have a central place for these attributes instead of duplicating them in rclcpp.
Signed-off-by: Nikolai Morin nikolai.morin@apex.ai