Skip to content

Query offered QoS profiles for a topic and store in metadata#333

Merged
emersonknapp merged 6 commits intoros2:masterfrom
aws-ros-dev:emersonknapp/query-qos
Mar 30, 2020
Merged

Query offered QoS profiles for a topic and store in metadata#333
emersonknapp merged 6 commits intoros2:masterfrom
aws-ros-dev:emersonknapp/query-qos

Conversation

@emersonknapp
Copy link
Copy Markdown
Collaborator

@emersonknapp emersonknapp commented Mar 27, 2020

Part of #125
Moves https://github.com/ros-tooling/aws-roadmap/issues/215 to Done
This change queries the currently offered QoS profiles for a given topic at the time of subscription, and stores them in the TopicMetadata. This does not use the queried QoS profile in any way, just stores it.

With this in, you will see the string-serialized profiles in both the metadata.yaml file and the sqlite topics table.

This does not handle new publishers that join after subscribing to a topic. We do not currently have a mechanism to change TopicMetadata after initial creation, and do not plan to add this ability for Foxy.

Once we have used the queried QoS profile to subscribe (upcoming change), we will need to make sure to notice late-joining publishers that offer a different QoS profile than we used to subscribe, to warn the user that this has happened.

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/query-qos branch from 4338e39 to e57a6b8 Compare March 27, 2020 00:54
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/query-qos branch from e57a6b8 to c2df921 Compare March 27, 2020 01:25
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
@emersonknapp
Copy link
Copy Markdown
Collaborator Author

@Karsten1987 ping for monday review :) I put more detail on the description for this one.

@emersonknapp
Copy link
Copy Markdown
Collaborator Author

@emersonknapp - please run this CI job
Gist: https://gist.githubusercontent.com/emersonknapp/8a25fa1084cd436020bf28fc35b0077d/raw/f1ace117ae842c9262eca05929f27756f8bf4e6b/ros2.repos
BUILD args: --packages-up-to rosbag2
TEST args: --packages-select rosbag2_transport rosbag2_storage rosbag2_storage_default_plugins rosbag2_tests
Job: ci_launcher

@emersonknapp
Copy link
Copy Markdown
Collaborator Author

emersonknapp commented Mar 30, 2020

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

The warnings in OSX are from rclcpp, unrelated to this change.
The test failure in windows is the remaining known issue from #305

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