Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix usage of rclcpp::ok with a non-default context (#352)
* Fix usage of rclcpp::ok with a non-default context The current implementation calls `rclcpp::ok` without any arguments, which amounts to verifying that the global default context is valid. In the case where a node is added to a custom context, and the global context is not used, `rclcpp::ok` without any arguments will always return `false` since the global context has never been initialized. To fix it, pass to rclcpp the context that's available via the node's base interface. * Add a test for custom context Signed-off-by: Christian Henkel <[email protected]>
- Loading branch information