LifeCycle pattern dosn't work (for me at least)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 805
- Forks
- 564
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 27
Description
Here's the problem:
I have LifeCycleNode implemented as component. The node has to received some data from a service to pass Configuration state. I bet you've already got the point. The configuration func is deadlocked. Because I can't return control to a component_container, cause configuration is not finished. I can't finish configuration, cause I've not received the data from the service (stiil awaiting). To receive response some of spins has to be called, but I can't do this, because my node will be double-registrated in that case. I cannot create another node (for client purpose) and destroy it after response is received, because any new node inside component derive name from parent. I cannot create sub-node, cause my node is derived from LifeCycleNode.
May be messed up a little bit, but it seems to me, that is is a bug.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report concerns LifeCycleNode configuration, component_container registration, service responses, and spinning. Start by reproducing the configuration deadlock with a lifecycle component and inspect how node registration and service handling interact. Done means establishing whether the reported deadlock is a bug and documenting or testing a decided fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- robotics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100