Skip to content

Commit

Permalink
Merge pull request #96 from jpfeltracco/jpfeltracco/remove_proto_warning
Browse files Browse the repository at this point in the history
Add explicit proto2 syntax to remove protobuf warnings
  • Loading branch information
mahi97 authored Sep 9, 2019
2 parents 6afe065 + 6fa8507 commit 8c7b47a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/proto/grSim_Commands.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
syntax = "proto2";

message grSim_Robot_Command {
required uint32 id = 1;
required float kickspeedx = 2;
Expand Down
4 changes: 3 additions & 1 deletion src/proto/grSim_Packet.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
syntax = "proto2";

import "grSim_Commands.proto";
import "grSim_Replacement.proto";
message grSim_Packet {
optional grSim_Commands commands = 1;
optional grSim_Replacement replacement = 2;
}
}
2 changes: 2 additions & 0 deletions src/proto/grSim_Replacement.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
syntax = "proto2";

message grSim_RobotReplacement {
required double x=1;
required double y=2;
Expand Down
2 changes: 2 additions & 0 deletions src/proto/messages_robocup_ssl_detection.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
syntax = "proto2";

message SSL_DetectionBall {
required float confidence = 1;
optional uint32 area = 2;
Expand Down
2 changes: 2 additions & 0 deletions src/proto/messages_robocup_ssl_geometry.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
syntax = "proto2";

// A 2D float vector.
message Vector2f {
required float x = 1;
Expand Down
2 changes: 2 additions & 0 deletions src/proto/messages_robocup_ssl_refbox_log.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
syntax = "proto2";

import "messages_robocup_ssl_detection.proto";

message Log_Frame
Expand Down
2 changes: 2 additions & 0 deletions src/proto/messages_robocup_ssl_wrapper.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
syntax = "proto2";

import "messages_robocup_ssl_detection.proto";
import "messages_robocup_ssl_geometry.proto";

Expand Down

0 comments on commit 8c7b47a

Please sign in to comment.