Skip to content

Commit

Permalink
feat(proxy_plugin): Dynamically register cache serialization types
Browse files Browse the repository at this point in the history
  • Loading branch information
yglsaltfish committed Dec 31, 2024
1 parent 4506993 commit c8a6ee7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugins/proxy_plugin/proxy_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,11 @@ void ProxyPlugin::RegisterSubChannel() {
.topic_name = topic_meta.topic_name,
.pkg_path = type_support_wrapper.options.path,
.module_name = "core",
.msg_type_support_ref = type_support_wrapper.type_support_ref},
.require_cache_serialization_types = {"pb", "ros2", "json", "yaml"}};
.msg_type_support_ref = type_support_wrapper.type_support_ref}};

for (const auto& it : type_support_wrapper.type_support_ref.SerializationTypesSupportedListSpan()) {
subscribe_wrapper.require_cache_serialization_types.emplace(it.str);
}

subscribe_wrapper.callback = [this, action_raw_ptr = proxy_action.get()](
MsgWrapper& msg_wrapper, std::function<void()>&& release_callback) {
Expand Down

0 comments on commit c8a6ee7

Please sign in to comment.