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

Ensure executor_ is spinning in TransformListener::init #605

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

franciszhi
Copy link

@franciszhi franciszhi commented May 23, 2023

Also, added tf2_test_transform_listener.transform_listener_spin_thread to test. Without the fix, the newly added test will freeze.

@franciszhi franciszhi force-pushed the fc/fix-transform-listener-init branch from d246b27 to 9a09cc3 Compare May 23, 2023 08:50
@franciszhi franciszhi force-pushed the fc/fix-transform-listener-init branch from 9a09cc3 to 44c7942 Compare June 28, 2023 07:38
@franciszhi franciszhi changed the title Ensure dedicated_listener_thread_ is active in TransformListener::init Ensure executor_ is active in TransformListener::init Jun 28, 2023
@franciszhi franciszhi changed the title Ensure executor_ is active in TransformListener::init Ensure executor_ is spinning in TransformListener::init Jun 28, 2023
Comment on lines +214 to +216
while (!executor_->is_spinning()) {
std::this_thread::sleep_for(std::chrono::microseconds(10));
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask what actually prompted this change, there's not a related issue nor pull request. Furthermore, when it comes to testing, a frozen node likely would've occured due to incorrect setup in the "main" section of the test file. Is it worth adding a more information needed tag?

@cottsay cottsay added the more-information-needed Further information is required label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-information-needed Further information is required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants