mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
43 lines
718 B
Protocol Buffer
43 lines
718 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package wpi.proto;
|
|
|
|
option java_package = "edu.wpi.first.math.proto";
|
|
|
|
message ProtobufTranslation2d {
|
|
double x = 1;
|
|
double y = 2;
|
|
}
|
|
|
|
message ProtobufRotation2d {
|
|
double value = 1;
|
|
}
|
|
|
|
message ProtobufPose2d {
|
|
ProtobufTranslation2d translation = 1;
|
|
ProtobufRotation2d rotation = 2;
|
|
}
|
|
|
|
message ProtobufTransform2d {
|
|
ProtobufTranslation2d translation = 1;
|
|
ProtobufRotation2d rotation = 2;
|
|
}
|
|
|
|
message ProtobufTwist2d {
|
|
double dx = 1;
|
|
double dy = 2;
|
|
double dtheta = 3;
|
|
}
|
|
|
|
message ProtobufRectangle2d {
|
|
ProtobufPose2d center = 1;
|
|
double xWidth = 2;
|
|
double yWidth = 3;
|
|
}
|
|
|
|
message ProtobufEllipse2d {
|
|
ProtobufPose2d center = 1;
|
|
double xSemiAxis = 2;
|
|
double ySemiAxis = 3;
|
|
}
|