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

Enhance TopicCache to include QoS Policies of publishers and subscribers #332

Closed

Conversation

jaisontj
Copy link
Contributor

@jaisontj jaisontj commented Oct 18, 2019

As per discussion here. The topic_cache class needs to cache the QoS policies of participants along with topic name and types; this is so that the feature request here can be implemented.

Summary of changes:

  • Modified topic_cache to include qos policies:
  • Modified call to topic_cache.addTopic at custom_participant_info.hpp
  • Wrote tests for topic_cache

Connected to aws-roadmap#83

Note: colcon build --packages-up-to rmw_fastrtps_shared_cpp && colcon test --packages-select rmw_fastrtps_shared_cpp builds and passes without errors or failures.

Signed-off-by: Jaison Titus [email protected]

@jaisontj
Copy link
Contributor Author

@ivanpauno This is the modification to topic_cache.hpp based on our discussion.
Please leave your thoughts :)

Note: I moved qos_converter.hpp into include from src since topic_cache needs to access it. I can remove the file all together and just add the function to qos.hpp if you think that is cleaner.

@@ -180,6 +222,7 @@ class TopicCache
"rmw_fastrtps_shared_cpp",
"Unable to remove topic, does not exist '%s' with type '%s'",
topic_name.c_str(), type_name.c_str());
return false;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ivanpauno Added this because the current implementation seems to return true even if removal is not possible.

- Modified call to topic_cache.addTopic at custom_participant_info.hpp
- Wrote tests for topic_cache

Signed-off-by: Jaison Titus <[email protected]>
@jaisontj
Copy link
Contributor Author

Closing this as #336 includes these changes.

@jaisontj jaisontj closed this Oct 29, 2019
@jaisontj jaisontj deleted the jaisontj/enhance_topic_cache_for_qos branch October 29, 2019 19:21
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.

1 participant