Commit 55b65b9c authored by Alexander David Hellwig's avatar Alexander David Hellwig
Browse files

Added ports of subcomponents to msg gen

parent 1cdac34a
Pipeline #118295 passed with stages
in 2 minutes and 14 seconds
......@@ -20,6 +20,7 @@ import;
import java.util.*;
public class GeneratorRosMsg {
private String path;
......@@ -293,7 +294,9 @@ public class GeneratorRosMsg {
public List<File> generateProject(EMAComponentInstanceSymbol component) throws IOException {
List<MCTypeReference<? extends MCTypeSymbol>> typeReferences = component.getPortInstanceList().stream()
Stream<EMAPortInstanceSymbol> p = component.getPortInstanceList().stream();
Stream<EMAPortInstanceSymbol> subp = component.getSubComponents().stream().flatMap(sc -> sc.getPortInstanceList().stream());
List<MCTypeReference<? extends MCTypeSymbol>> typeReferences = Stream.concat(p, subp)
.filter(mcTypeReference -> mcTypeReference.getReferencedSymbol() instanceof StructSymbol)
Supports Markdown
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