-
Notifications
You must be signed in to change notification settings - Fork 429
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 support for logging service. #2122
Conversation
907f1f2
to
0f0c3c4
Compare
Rebased to the latest rolling. |
This PR depend on #2122 |
There is another way to avoid changing the existing interface of NodeBase. |
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.
@llapx thanks for working on this, 1st review completed.
@clalancette @mjcarroll @wjwwood @alsora @gbiggs @iuhilnehc-ynos I would like to have opinion and comments on the followings(only applies to rclcpp).
thanks, |
@Barry-Xu-2018 since we have not received the response to #2122 (comment), probably we can keep the current implementation with this PR, which is @iuhilnehc-ynos please chime in if you have comments on this. thanks, |
Yes. But I refactor code to avoid many changes on existing interface. About the second point, we incline to use |
7d4bccc
to
0074d6d
Compare
0074d6d introduce a new class |
@Barry-Xu-2018 @iuhilnehc-ynos We had a quick discussion on this today. in addition to #2122 (comment), we can just rely on user thread to spin just like parameter services in case of handling these services with internal thread just like time source, |
besides, this is the current implementation of ros2/rclpy#1102 |
Yes. We can put logger service in user thread like parameter services. |
I think this can be handles as different issue and PRs, but currently i see that user thread could be most appropriate. |
I updated codes. |
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
22f0d1f
to
0ca98ec
Compare
Rebase was done. |
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, I was iffy about the service interface being passed separately from the constructor but on reflection I think that's actually for the best since the feature is optional.
Signed-off-by: Lei Liu <Lei.Liu.AP@sony.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>
Signed-off-by: Barry Xu <barry.xu@sony.com>
0ca98ec
to
c6fb623
Compare
(also, Rpr is going to fail since we haven't released |
@fujitatomoya @llapx @Barry-Xu-2018 So unfortunately it looks like something is going on with Windows here. In particular, some of the tests are crashing that didn't crash in the nightlies, and didn't seem to crash with the other code that went in today. I honestly don't know what is going on here, but I don't think we should put this in like it is. Can you please take a look and try to see what is happening? |
@clalancette Okay. I will check failed test cases. |
actually there are 5 test failure, all of them looks not related to our PRs, but hard to guarantee that at this very last moment. starting windows CI again: |
@fujitatomoya |
in our opinion, that is so unlikely those are related to our PR, since our code is not even enabled. (builtin logging level service is opt-in.) on the other hand, we understand that you do not take this at very last moment unless CI is all green. (CI windows has been restarted, but will not be completed in time.) |
* Add support for logging service. * Update to not modify interfaces and not change time_source * Use unique_ptr for NodeBuiltinExecutorImpl * Use user thread to run logger service * Update code for lifecycle_node Signed-off-by: Barry Xu <barry.xu@sony.com> Signed-off-by: Lei Liu <Lei.Liu.AP@sony.com>
No description provided.