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

StaticSingleThreadedExecutor throws rcl error (couldn't add guard condition to wait set) if node goes out of scope before spin #1231

Open
brawner opened this issue Jul 15, 2020 · 0 comments
Labels

Comments

@brawner
Copy link
Contributor

brawner commented Jul 15, 2020

When expanding the test_executor unit test to StaticSingleThreadedExecutor (in #1222), the temporary node test fails for this executor.

terminate called after throwing an instance of 'std::runtime_error'
  what():  Executor waitable: couldn't add guard condition to wait set
Aborted (core dumped)

Example of temporary node unit test.

TEST_F(TestExecutors, addTemporaryNode) {
rclcpp::executors::SingleThreadedExecutor executor;
executor.add_node(std::make_shared<rclcpp::Node>("temporary_node"));
EXPECT_NO_THROW(executor.spin_some());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants