diff --git a/resource/interface_factories.cpp.em b/resource/interface_factories.cpp.em index 57f71a4b..7509d979 100644 --- a/resource/interface_factories.cpp.em +++ b/resource/interface_factories.cpp.em @@ -56,7 +56,7 @@ get_factory_@(ros2_package_name)__@(interface_type)__@(interface.message_name)(c if ( (ros1_type_name == "@(m.ros1_msg.package_name)/@(m.ros1_msg.message_name)" || ros1_type_name == "") && - ros2_type_name == "@(m.ros2_msg.package_name)/@(m.ros2_msg.message_name)") + ros2_type_name == "@(m.ros2_msg.package_name)/@(interface_type)/@(m.ros2_msg.message_name)") { return std::make_shared< Factory<