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

Type hash distribution in discovery (rep2011) #671

Merged
merged 17 commits into from
Mar 26, 2023

Conversation

emersonknapp
Copy link
Contributor

@emersonknapp emersonknapp commented Feb 17, 2023

Part of ros2/ros2#1159

Depends on ros2/rmw_dds_common#70
Depends on ros2/rosidl#729

Features:

  • Retrieve type version hash from generated code, and use the USER_DATA QoS policy to distribute it for all readers/writers. Format of the USER_DATA uses common utility functions in rmw_dds_common
  • On discovering new endpoints, parse the USER_DATA to set rmw_topic_endpoint_info_t.type_hash

@emersonknapp emersonknapp changed the title [WIP] Type Hash Distribution [WIP] Type hash distribution in discovery (rep2011) Feb 21, 2023
@emersonknapp emersonknapp changed the title [WIP] Type hash distribution in discovery (rep2011) Type hash distribution in discovery (rep2011) Feb 23, 2023
@emersonknapp emersonknapp marked this pull request as ready for review February 23, 2023 21:51
@emersonknapp emersonknapp force-pushed the emersonknapp/type-version-hash branch 2 times, most recently from 326cc22 to b1967cd Compare March 13, 2023 07:13
rmw_fastrtps_dynamic_cpp/src/publisher.cpp Outdated Show resolved Hide resolved
rmw_fastrtps_dynamic_cpp/src/rmw_client.cpp Outdated Show resolved Hide resolved
rmw_fastrtps_dynamic_cpp/src/rmw_service.cpp Outdated Show resolved Hide resolved
rmw_fastrtps_dynamic_cpp/src/subscription.cpp Outdated Show resolved Hide resolved
rmw_fastrtps_shared_cpp/src/qos.cpp Show resolved Hide resolved
rmw_fastrtps_shared_cpp/src/qos.cpp Outdated Show resolved Hide resolved
rmw_fastrtps_shared_cpp/src/qos.cpp Show resolved Hide resolved
@emersonknapp emersonknapp force-pushed the emersonknapp/type-version-hash branch 2 times, most recently from ec3df77 to 37b65f6 Compare March 15, 2023 19:52
@emersonknapp emersonknapp requested review from clalancette and removed request for gbiggs and sloretz March 16, 2023 01:31
@emersonknapp emersonknapp force-pushed the emersonknapp/type-version-hash branch 2 times, most recently from 4cc09ad to 2fb92a1 Compare March 16, 2023 02:28
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.

I've left two more things I think should be changed. Otherwise this looks good to me.

@emersonknapp
Copy link
Contributor Author

emersonknapp commented Mar 17, 2023

@emersonknapp
Copy link
Contributor Author

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

@emersonknapp emersonknapp force-pushed the emersonknapp/type-version-hash branch from 4aa2acb to ba7eaf6 Compare March 22, 2023 07:24
@@ -314,7 +314,9 @@ rmw_create_client(
reader_qos.data_sharing().off();
}

if (!get_datareader_qos(adapted_qos_policies, reader_qos)) {
if (!get_datareader_qos(
adapted_qos_policies, *type_supports->response_typesupport->type_hash, reader_qos))
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: I don't know if this package has our linters run over it, but I would have expected this to use two spaces of indent, not four

Copy link
Contributor Author

Choose a reason for hiding this comment

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

linters did run - your intuition is my intuition, but uncrustify wants it this way. I believe the logic is "2 times the number of opening braces" - in this case there's if (( so it expects 4 spaces

rmw_fastrtps_shared_cpp/src/qos.cpp Outdated Show resolved Hide resolved
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
@emersonknapp emersonknapp force-pushed the emersonknapp/type-version-hash branch from b6a69f2 to 40afb80 Compare March 24, 2023 17:05
@emersonknapp
Copy link
Contributor Author

emersonknapp commented Mar 24, 2023

Gist: https://gist.githubusercontent.com/emersonknapp/c36ca5985030eccbcaac0d0384236fbd/raw/374f6ef848452efc7e6a2b079129195ece75aeec/ros2.repos
BUILD args: --packages-above-and-dependencies rmw_dds_common
TEST args: --packages-above rmw_dds_common
ROS Distro: rolling

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

@clalancette
Copy link
Contributor

CI is in ros2/rmw_dds_common#70 (comment)

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