Commit 38ed3365 authored by Lennart Bucher's avatar Lennart Bucher
Browse files

Update Ros2Macros.ftl

parent 7ae180ad
Pipeline #188121 failed with stages
in 2 minutes and 4 seconds
......@@ -39,13 +39,20 @@
</#macro>
<#macro callback sub>
void ${sub.getMethodName()}(const ${sub.getTypeNameInTargetLanguage()}::SharedPtr msg){
<#if !sub.isStructInterface() && sub.getRosConnectionSymbol().getMsgField().isPresent()>
component->${sub.getPortNameInTargetLanguage()} = msg->${sub.getRosConnectionSymbol().getMsgField().get()};
void ${sub.getMethodName()}(const ${sub.getTypeNameInTargetLanguage()}::ConstPtr& msg){
<#if !sub.isStructInterface() && !sub.isMatrixInterface() && sub.getRosConnectionSymbol().getMsgField().isPresent()>
component->${sub.getPortNameInTargetLanguage()} = msg->${sub.getRosConnectionSymbol().getMsgField().get()};
<#else>
<#-- ${sub.getRos2SetStructInstruction()} -->
<#if sub.isMatrixInterface()>
${sub.getRos2SetMatrixInstruction()}
<#else>
${sub.getRos2SetStructInstruction()}
</#if>
</#if>
}
}
</#macro>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment