-
Notifications
You must be signed in to change notification settings - Fork 74
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
Support LifecycleNode and EventHandler in frontend #236
Comments
@jacobperron To provide some advice on how to move forward with this. |
@kenji-miyake Certainly, what you have is a good start (kenji-miyake/launch_ros@8daecd8). I would accept that in a pull request on its own. Regarding exposing events and event handlers (etc) in the front-end, I suggest we open up a separate issue in launch. I imagine it should be easy to expose the RegisterEventHandler action. Then we need a way to parse |
Thank you! |
@kenji-miyake I can work on this. What is missing in your branch? How do you think it should continue? Thanks. |
@esteve What I've done is just exposing LifecycleAction to frontend.
|
@jacobperron I've created a PR based on @kenji-miyake 's work at #327, I'll work on the remaining tasks in separate PRs |
@jacobperron I've created ros2/launch#658 to continue the discussion there about the RegisterEventHandler action |
Feature request
Feature description
It's useful to support LifecycleNode in frontend(xml) as well.
As for LifecycleNode itself, if we only use simple launch files as below, it can be done by just exposing like this kenji-miyake@8daecd8.
However, I believe it's not enough useful because we usually would like to write state transitions as well like this.
So I think it's better to support RegisterEventHandler and EventHandlers.
Implementation considerations
I think there are at least two problems.
How to expose EventHandlers?
Is it okay to add
parse_event_handler
andinstantiate_event_handler
as Action class does?How to refer Python Object from frontend?
For example,
OnStateTransition
requiresLifecycleNode
object but I think it can't be given in frontend easily.Probably this is what @ivanpauno mentioned here https://answers.ros.org/question/333404/launch-composed-nodes-using-the-launch-xml-frontend/, right?
So I guess some mechanism for finding Object from all entities.
Does anybody have any idea about this?
If somebody guides me, I'll try to work on this task!
The text was updated successfully, but these errors were encountered: