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

Minimize header includes by moving impl to .cpp files (#331) and Fix usage of rclcpp::ok with a non-default context (#352) #390

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

ct2034
Copy link
Collaborator

@ct2034 ct2034 commented Jul 22, 2024

  • Minimize header includes by moving impl to .cpp files
  • Make sure to build a shared library

Rayman and others added 2 commits July 22, 2024 14:05
* Minimize header includes by moving impl to .cpp files
* Make sure to build a shared library

Signed-off-by: Christian Henkel <[email protected]>
* 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]>
@ct2034 ct2034 changed the title Minimize header includes by moving impl to .cpp files (#331) Minimize header includes by moving impl to .cpp files (#331) and Fix usage of rclcpp::ok with a non-default context (#352) Jul 22, 2024
@ct2034 ct2034 merged commit 0447648 into ros2 Jul 22, 2024
12 checks passed
@ct2034 ct2034 deleted the fix/missing_jazzy_diff branch July 22, 2024 13:12
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

Successfully merging this pull request may close these issues.

3 participants