Commit 82eb8967 authored by Alexander David Hellwig's avatar Alexander David Hellwig
Browse files

Fixed: .msg files dont contain ';', boolean -> bool

parent f6cb3ef9
......@@ -59,7 +59,7 @@ public class GeneratorRosMsg {
String definition = structSymbol.getStructFieldDefinitions().stream()
.filter(sfds -> sfds.getType().existsReferencedSymbol())
.map(sfds -> getInMsgRosType(sfds.getType().getReferencedSymbol()) + " " + sfds.getName() + ";")
.map(sfds -> getInMsgRosType(sfds.getType().getReferencedSymbol()) + " " + sfds.getName())
.collect(Collectors.joining("\n"));
File f = new File(path + "/" + getTargetName(structSymbol) + ".msg");
......@@ -86,7 +86,7 @@ public class GeneratorRosMsg {
} else if (mcastTypeSymbol.getName().equals("Z")) {
return "int32";
} else if (mcastTypeSymbol.getName().equals("B")) {
return "boolean";
return "bool";
} else {
Log.error("Case not handled! MCASTTypeSymbol " + mcastTypeSymbol.getName());
}
......
float64 fieldQ1;
float64 fieldQ2;
int32 fieldZ1;
int32 fieldZ2;
boolean fieldB1;
\ No newline at end of file
float64 fieldQ1
float64 fieldQ2
int32 fieldZ1
int32 fieldZ2
bool fieldB1
\ No newline at end of file
float64 fieldQ1;
float64 fieldQ2;
int32 fieldZ1;
int32 fieldZ2;
boolean fieldB1;
\ No newline at end of file
float64 fieldQ1
float64 fieldQ2
int32 fieldZ1
int32 fieldZ2
bool fieldB1
\ No newline at end of file
multinested/structs_NestedStruct fieldMultiNested1;
multinested/structs_NestedStruct fieldMultiNested2;
multinested/structs_BasicStruct fieldNested;
float64 fieldQ;
\ No newline at end of file
multinested/structs_NestedStruct fieldMultiNested1
multinested/structs_NestedStruct fieldMultiNested2
multinested/structs_BasicStruct fieldNested
float64 fieldQ
\ No newline at end of file
multinested/structs_BasicStruct fieldNested1;
multinested/structs_BasicStruct fieldNested2;
float64 fieldQ;
boolean fieldB;
int32 fieldZ;
\ No newline at end of file
multinested/structs_BasicStruct fieldNested1
multinested/structs_BasicStruct fieldNested2
float64 fieldQ
bool fieldB
int32 fieldZ
\ No newline at end of file
float64 fieldQ1;
float64 fieldQ2;
int32 fieldZ1;
int32 fieldZ2;
boolean fieldB1;
\ No newline at end of file
float64 fieldQ1
float64 fieldQ2
int32 fieldZ1
int32 fieldZ2
bool fieldB1
\ No newline at end of file
nested/structs_BasicStruct fieldNested1;
nested/structs_BasicStruct fieldNested2;
float64 fieldQ;
boolean fieldB;
int32 fieldZ;
\ No newline at end of file
nested/structs_BasicStruct fieldNested1
nested/structs_BasicStruct fieldNested2
float64 fieldQ
bool fieldB
int32 fieldZ
\ No newline at end of file
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