-
Notifications
You must be signed in to change notification settings - Fork 418
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 LifecycleNode::get_transition_graph along with service. #1472
add LifecycleNode::get_transition_graph along with service. #1472
Conversation
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
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 looks pretty good. Thanks for taking care of this. I just had a few comments.
…ry state. Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
requesting review one more time, thanks in advance! |
Benchmark results seem reasonable to me:
|
The ci jobs all passed here. The warnings on aarch64 are the expected for benchmarks, and the ones on windows have been resolved. @wjwwood did you have any more comments or do you think this is good to merge? |
std::vector<Transition> transitions; | ||
transitions.reserve(state_machine_.current_state->valid_transition_size); | ||
|
||
for (unsigned int i = 0; i < state_machine_.current_state->valid_transition_size; ++i) { |
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 know this is because the data structure in C uses unsigned int
, but really we should be using size_t
here and there. Nothing to do for now, just a comment...
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.
Totally agreed
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
address #1460
Signed-off-by: Tomoya.Fujita Tomoya.Fujita@sony.com