-
Notifications
You must be signed in to change notification settings - Fork 67
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
Adding required structs and methods to get a list of publishers or subscribers with their respective qos #186
Merged
ivanpauno
merged 31 commits into
ros2:master
from
aws-ros-dev:jaisontj/include_qos_in_ros2_topic_info
Jan 14, 2020
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
cce521a
Added two structs:
jaisontj 8fe5fd2
Added two functions to retrieve the list of all subscribers and publi…
jaisontj 69744dd
Allocator and free functions for rmw_participant_qos_profile
jaisontj 20bedc2
Fixed code indentation issues
jaisontj 94b27b3
Tests to rmw_participant_qos_profile_t_allocator
jaisontj ed9651e
Modified tests to avoid memory leak
jaisontj 5c5ccbf
- Updated rmw_participants_t to use rmw_participant_qos_profile_t *
jaisontj 06c5d4c
Changed rmw_participants_t to use a pointer to an array.
jaisontj a5e113b
PR rework after design changes
jaisontj 1714008
- Changed member variables from const type const to const type in
jaisontj 583687e
- Added zero_init, check_zero, init_with_size and fini functions for
jaisontj 91a5668
- More informative comments
jaisontj 091988c
- Fixed warnings on deallocate by casting const char * to char *
jaisontj ad84fb3
Fixed code formatting issues
jaisontj 9b22c98
- Using strncpy instead of strcpy
jaisontj 383e4a6
Using memcpy instead of strncpy to prevent warnings on Windows
jaisontj 5e0e27f
- Comment modification to be more explicit.
jaisontj 1d9e1fe
- Fixed function comments
jaisontj cbd91b3
Using memcpy in topic_info_set_gid
jaisontj e24e1f4
Added init and fini functions for rmw_topic_info_t and tests for the
jaisontj 272a2dc
change c-strings under topic_info to be non-const
mm318 c00ad69
revert the change that removed const qualifiers
mm318 3e8f892
address PR comments
mm318 a1c35de
address PR comments
mm318 747c4c9
add rmw_qos_profile_unknown
mm318 06bb093
use constant instead of literal for history depth
mm318 c82859b
address more PR comments
mm318 702aef2
rename *topic_info* to *topic_endpoint_info*
mm318 8ddb815
fix formatting
mm318 6d9675a
remove unused enum value from rmw_endpoint_type_t
mm318 2915b73
fix clang compiler warnings
mm318 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like they are allowed? Why not an error case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what error code to use in this case (a generic
RMW_RET_ERROR
?RCL_RET_TOPIC_NAME_INVALID
migrated over tormw
?).Also, this function shouldn't be used for detecting the existence of a topic; that feels like it is encroaching on the purpose of
rmw_get_topic_names_and_types()
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this comment doesn't make since if "non-existent topic" just means a topic that isn't on the graph. I was still thinking an empty string, in which case it should create an error, just like if it violated any of the other rules in the topic name rules set.
I think this can be resolved without changes. Though a follow up question is what happens if the value for
topic_name
violates one of the topic name rules, e.g. empty string, starts with a number, etc.There is already this function:
rmw/rmw/include/rmw/validate_full_topic_name.h
Lines 37 to 90 in 813b94d