Skip to content

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

Closed
jaisontj wants to merge 3 commits intoros2:masterfrom
aws-ros-dev:jaisontj/enhance_topic_cache_for_qos
Closed

Enhance TopicCache to include QoS Policies of publishers and subscribers#332
jaisontj wants to merge 3 commits intoros2:masterfrom
aws-ros-dev:jaisontj/enhance_topic_cache_for_qos

Conversation

@jaisontj
Copy link
Copy Markdown
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 jaisontj92@gmail.com

Signed-off-by: Jaison Titus <jaisontj92@gmail.com>
topic_cache.hpp

Signed-off-by: Jaison Titus <jaisontj92@gmail.com>
@jaisontj
Copy link
Copy Markdown
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.

"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
Copy Markdown
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 <jaisontj92@gmail.com>
@jaisontj
Copy link
Copy Markdown
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