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

Allow null arguments in the EventsExecutor parameters #602

Merged
merged 3 commits into from
May 5, 2022

Conversation

j-rivero
Copy link
Contributor

@j-rivero j-rivero commented May 5, 2022

After merging #600, failing tests have appeared in rclcpp that points to problems with assertions introduced on parameter there.

I did that following the API that explicit mention when a parameter can be null (i.e. user_data). Seems to me like the null check and error handling is being done at a different place of the stack.

Testing:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

…ion"

This reverts commit 8e93400.

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
@fujitatomoya fujitatomoya changed the title Allow null arguments in the EvenExecutor parameters Allow null arguments in the EventsExecutor parameters May 5, 2022
@j-rivero
Copy link
Contributor Author

j-rivero commented May 5, 2022

While reviewing the error logs in the past builds I noticed that probably the problem was only in checking callbacks that can be nullptr, the value is handled in different software layer (i. e. https://github.com/ros2/rmw_fastrtps/blob/master/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/custom_client_info.hpp#L203).

So I think that we can leave the checks on the other parameters:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Still looks OK, assuming CI comes back green.

@j-rivero j-rivero merged commit 12e514d into master May 5, 2022
@delete-merged-branch delete-merged-branch bot deleted the jrivero/fix_check_null branch May 5, 2022 21:49
@Blast545
Copy link

This PR and #600 should be backported to Humble to address the build regressions on the fastrtps-dynamic Hci jobs.

Blast545 pushed a commit that referenced this pull request May 11, 2022
* Revert "Add RMW_CHECKS to  EventsExecutor implementation"
* Check the non callback values for nullptr

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
timonegk pushed a commit to timonegk/rmw_fastrtps that referenced this pull request May 21, 2022
* Revert "Add RMW_CHECKS to  EventsExecutor implementation"
* Check the non callback values for nullptr

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
timonegk pushed a commit to timonegk/rmw_fastrtps that referenced this pull request Jun 8, 2022
* Revert "Add RMW_CHECKS to  EventsExecutor implementation"
* Check the non callback values for nullptr

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
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.

None yet

3 participants