-
Notifications
You must be signed in to change notification settings - Fork 181
feat: Added check for double usage of entities in rcl_waitset #1206
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
Open
jmachowinski
wants to merge
1
commit into
ros2:rolling
Choose a base branch
from
cellumation:check_for_duplicated_entities
base: rolling
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| // Copyright 2025 cellumation GmbH | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| #ifndef RCL__CLIENT_IMPL_H_ | ||
| #define RCL__CLIENT_IMPL_H_ | ||
|
|
||
| #include "rcl/client.h" | ||
| #include "rcutils/stdatomic_helper.h" | ||
| #include "rmw/rmw.h" | ||
| #include "./service_event_publisher.h" | ||
|
|
||
| struct rcl_client_impl_s | ||
| { | ||
| rcl_client_options_t options; | ||
| rmw_qos_profile_t actual_request_publisher_qos; | ||
| rmw_qos_profile_t actual_response_subscription_qos; | ||
| rmw_client_t * rmw_handle; | ||
| atomic_int_least64_t sequence_number; | ||
| rcl_service_event_publisher_t * service_event_publisher; | ||
| char * remapped_service_name; | ||
| rosidl_type_hash_t type_hash; | ||
| bool in_use_by_waitset; | ||
| }; | ||
|
|
||
| #endif // RCL__CLIENT_IMPL_H_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // Copyright 2025 cellumation GmbH | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| #ifndef RCL__GUARD_CONDITION_IMPL_H_ | ||
| #define RCL__GUARD_CONDITION_IMPL_H_ | ||
|
|
||
| #include "rcl/guard_condition.h" | ||
|
|
||
| struct rcl_guard_condition_impl_s | ||
| { | ||
| rmw_guard_condition_t * rmw_handle; | ||
| bool allocated_rmw_guard_condition; | ||
| rcl_guard_condition_options_t options; | ||
| bool in_use_by_waitset; | ||
| }; | ||
|
|
||
| #endif // RCL__GUARD_CONDITION_IMPL_H_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| // Copyright 2025 cellumation GmbH | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| #ifndef RCL__SERVICE_IMPL_H_ | ||
| #define RCL__SERVICE_IMPL_H_ | ||
|
|
||
| #include "rmw/rmw.h" | ||
| #include "rcl/service.h" | ||
| #include "./service_event_publisher.h" | ||
|
|
||
| struct rcl_service_impl_s | ||
| { | ||
| rcl_service_options_t options; | ||
| rmw_qos_profile_t actual_request_subscription_qos; | ||
| rmw_qos_profile_t actual_response_publisher_qos; | ||
| rmw_service_t * rmw_handle; | ||
| rcl_service_event_publisher_t * service_event_publisher; | ||
| char * remapped_service_name; | ||
| rosidl_type_hash_t type_hash; | ||
| bool in_use_by_waitset; | ||
| }; | ||
|
|
||
| #endif // RCL__SERVICE_IMPL_H_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| // Copyright 2025 cellumation GmbH | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| #ifndef RCL__TIMER_IMPL_H_ | ||
| #define RCL__TIMER_IMPL_H_ | ||
|
|
||
| #include <inttypes.h> | ||
|
|
||
| #include "rcl/timer.h" | ||
| #include "rcutils/stdatomic_helper.h" | ||
|
|
||
| struct rcl_timer_impl_s | ||
| { | ||
| // The clock providing time. | ||
| rcl_clock_t * clock; | ||
| // The associated context. | ||
| rcl_context_t * context; | ||
| // A guard condition used to wake the associated wait set, either when | ||
| // ROSTime causes the timer to expire or when the timer is reset. | ||
| rcl_guard_condition_t guard_condition; | ||
| // The user supplied callback. | ||
| atomic_uintptr_t callback; | ||
| // This is a duration in nanoseconds, which is initialized as int64_t | ||
| // to be used for internal time calculation. | ||
| atomic_int_least64_t period; | ||
| // This is a time in nanoseconds since an unspecified time. | ||
| atomic_int_least64_t last_call_time; | ||
| // This is a time in nanoseconds since an unspecified time. | ||
| atomic_int_least64_t next_call_time; | ||
| // Credit for time elapsed before ROS time is activated or deactivated. | ||
| atomic_int_least64_t time_credit; | ||
| // A flag which indicates if the timer is canceled. | ||
| atomic_bool canceled; | ||
| // The user supplied allocator. | ||
| rcl_allocator_t allocator; | ||
| // The user supplied on reset callback data. | ||
| rcl_timer_on_reset_callback_data_t callback_data; | ||
| bool in_use_by_waitset; | ||
| }; | ||
| #endif // RCL__TIMER_IMPL_H_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.