-
Notifications
You must be signed in to change notification settings - Fork 422
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
Lifecycle node trigger_transition() function caused transition publish failed #1941
Comments
Yes, this is a known issue. |
Is this problem caused by dds or ros2? This problem will occur frequently, it will cause the life cyclenode to feel very bad to use. |
ROS 2 LifeCycle Node.
AFAIK, there is no work-around on this.
No, mainline still has this problem. |
So what can I do now to avoid this problem?Do you have a good way? |
No, i do not really think of ways to avoid this. probably we can escalate ros2/design#283. |
@fujitatomoya @alsora |
I haven't used Humble yet, but I can say that I had this issue on Galactic (it's extremely rare, but it's still present) |
@weibw-720 good to hear! i am not sure how you got it work. i think technically there would be inconsistent primary state if error happens, so problem could happen in humble too, if i am not mistaken. |
@fujitatomoya @alsora |
Question
Required Info:
Steps to reproduce issue
I just learned ros2 recently and am learning to use lifecycle node.
When I execute the
trigger_transition(Transition::TRANSITION_DEACTIVATE);
in the timer callback function,I will get the following error report:And my node state will always be deactivating, can no longer be changed
Here are some of my code:
But when I execute the
trigger_transition(Transition::TRANSITION_DEACTIVATE);
in the message callback function,It will be all right.Here are some of my code:Above, I would like to ask what I did wrong? Or is this a bug?
I'm looking forward to someone's help. This problem has bothered me for a long time.Thanks
Feature request
Feature description
Implementation considerations
The text was updated successfully, but these errors were encountered: