Conversation
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
|
@esteve Thank you for your work! |
|
@kenji-miyake thanks. I created ros2/launch#658 to address event handlers |
ivanpauno
left a comment
There was a problem hiding this comment.
LGTM!
It would be nice to add some tests before merging.
If we only expose this, and not event handlers, there's no much advantage of using lifecycle_node over node in XML launch files.
The only advantage is that the StateTransition and ChangeState events will be emited.
So if you include a python launch file from the XML launch file, you can take advantages of those using event handlers.
Though that seems fine IMO
|
@esteve @kenji-miyake could you add a test case for this? |
|
@ivanpauno @esteve @kenji-miyake, I could add some front-end tests, if you want? |
|
I've added the test in a new PR #482. |
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Signed-off-by: SuperJappie08 <36795178+SuperJappie08@users.noreply.github.com> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp>
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Signed-off-by: SuperJappie08 <36795178+SuperJappie08@users.noreply.github.com> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp> (cherry picked from commit e3ef186)
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Signed-off-by: SuperJappie08 <36795178+SuperJappie08@users.noreply.github.com> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp> (cherry picked from commit e3ef186)
(cherry picked from commit e3ef186) Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Signed-off-by: SuperJappie08 <36795178+SuperJappie08@users.noreply.github.com> Co-authored-by: Jasper van Brakel <36795178+SuperJappie08@users.noreply.github.com> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp>
(cherry picked from commit e3ef186) Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Signed-off-by: SuperJappie08 <36795178+SuperJappie08@users.noreply.github.com> Co-authored-by: Jasper van Brakel <36795178+SuperJappie08@users.noreply.github.com> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp>
Original author: @kenji-miyake
Closes #236