Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use protobufs for packed message data #974

Closed
wants to merge 93 commits into from

Conversation

mcm001
Copy link
Contributor

@mcm001 mcm001 commented Oct 21, 2023

TODO:

  • Java
  • C++
  • Tests
    • C++
    • Java
  • Get rid of Packet and its related items (Tests, Utils, etc.)

@mcm001 mcm001 requested a review from a team as a code owner October 21, 2023 14:07
@mcm001 mcm001 changed the title 2023 10 20 protobuf Add protobufs for packed message data Oct 21, 2023
@mcm001 mcm001 changed the title Add protobufs for packed message data Use protobufs for packed message data Oct 21, 2023
@srimanachanta srimanachanta marked this pull request as draft October 21, 2023 14:34
@srimanachanta
Copy link
Member

When we bump spotless, there are protobuf options we can add, including license and some other stuff

Comment on lines +119 to +132
it.binaries.all {
it.tasks.withType(CppCompile) {
it.dependsOn ":photon-targeting:generateProto"
}
}
}
}
testSuites {
all {
it.binaries.all {
it.tasks.withType(CppCompile) {
it.dependsOn ":photon-targeting:generateProto"
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to be done? photon-lib shouldn't have a direct dependency on photon-targeting's generateProto task. This falls outside of my gradle knowledge so we may be doing something wrong/inefficently here

@mcm001 mcm001 marked this pull request as ready for review November 24, 2023 15:21
@srimanachanta
Copy link
Member

Benchmarking Data:
Packet:

Name Size (Bytes)
DriverMode 210 Bytes
Reflective (1 Target) 562 Bytes
AprilTag Normal (4 tags) 1618 Bytes
AprilTag Multitag (4 tags) 1618 Bytes
AprilTag Multitag (4 tags) + Always do SingleTag 1618 Bytes
Aruco Normal (4 tags) 1618 Bytes
Aruco Multitag (4 tags) 1618 Bytes
Aruco Multitag (4 tags) + Always do SingleTag 1618 Bytes

Protobuf:

Name Size (Bytes)
DriverMode 186 Bytes
Reflective (1 Target) 467 Bytes
AprilTag Normal (4 tags) 1594 Bytes
AprilTag Multitag (4 tags) 1602 Bytes
AprilTag Multitag (4 tags) + Always do SingleTag 1602 Bytes
Aruco Normal (4 tags) 1594 Bytes
Aruco Multitag (4 tags) 1602 Bytes
Aruco Multitag (4 tags) + Always do SingleTag 1602 Bytes

@srimanachanta
Copy link
Member

Blocked by:

@srimanachanta
Copy link
Member

Most of the work was done by #1075, If we want to replace Pakcet with Protobuf, we need to reimplement that stuff into that new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add PhotonTargetting tests
3 participants