We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c5ad16 commit 07dc1f6Copy full SHA for 07dc1f6
resource/interface_factories.cpp.em
@@ -321,8 +321,14 @@ void ServiceFactory<
321
@[ if field["basic"]]@
322
@(field["ros2"]["name"])@(to) = @(field["ros1"]["name"])@(frm);
323
@[ else]@
324
- Factory<@(field["ros1"]["cpptype"]),@(field["ros2"]["cpptype"])>::convert_@(frm)_to_@(to)(@
325
-@(field["ros2"]["name"])@(frm), @(field["ros1"]["name"])@(to));
+ Factory<@(field["ros1"]["cpptype"]),@(field["ros2"]["cpptype"])>::convert_@(frm)_to_@(to)(
+@[ if frm == "1"]@
326
+ @(field["ros1"]["name"])1, @(field["ros2"]["name"])2
327
+@[ else]@
328
+ @(field["ros2"]["name"])2, @(field["ros1"]["name"])1
329
+@[ end if]@
330
+ );
331
+
332
@[ end if]@
333
@[ if field["array"]]@
334
}
0 commit comments