Skip to content
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

Bug when using Parallel Node #819

Open
RRinsy opened this issue May 17, 2024 · 1 comment
Open

Bug when using Parallel Node #819

RRinsy opened this issue May 17, 2024 · 1 comment
Assignees

Comments

@RRinsy
Copy link

RRinsy commented May 17, 2024

Hello
I am using BT in ROS2, and I find my tree not working as expected.
My tree is as follow. The Check_Condition_Bool node returns SUCCESS in default, and if the message is 0 it will return FAILURE.
截图 2024-05-17 14-40-25

What I expect is: First ros_topic_1 publish 0, and Sleep_1 will start running. While sleep_1 is running, ros_topic_2 publish 0, then Sleep_2 will also start running, and Sleep_1 and Sleep_2 will be running parallelly.
The result is: When ros_topic_1 published 0,it run as expected. But when ros_topic_2 published 0 after ros_topic_1, the condition of Check_Condition_Bool_2 didn't change to FAILURE.
截图 2024-05-17 15-09-15

I have checked that there is no mistake in the code. I think there may be something wrong in the Parallel node. Or maybe I misunderstand the function of Parallel node?
Source code is in the attach files, please help me. Thank you!

parallel_test.zip

@facontidavide
Copy link
Collaborator

More likely the problem is in the ROS subscriber node, not in Parallel.
I will investigate.

@facontidavide facontidavide self-assigned this May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants