Skip to content

Commit abfc527

Browse files
committed
Make custom fields repeated instead of optional
This way, one can send custom fields for all known implementations. The client does not need to know which simulator it configures. The simulator can take its designated custom message.
1 parent 254d2d1 commit abfc527

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

internal/simctl/ssl_simulation_config.pb.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/ssl_simulation_config.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ message RobotSpecs {
5656
// Wheel angle configuration
5757
optional RobotWheelAngles wheel_angles = 13;
5858
// Custom robot spec for specific simulators (the protobuf files are managed by the simulators)
59-
optional google.protobuf.Any custom = 14;
59+
repeated google.protobuf.Any custom = 14;
6060
}
6161

6262
message RealismConfig {
6363
// Custom config for specific simulators (the protobuf files are managed by the simulators)
64-
optional google.protobuf.Any custom = 1;
64+
repeated google.protobuf.Any custom = 1;
6565
}
6666

6767
// Change the simulator configuration

0 commit comments

Comments
 (0)