Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Nov 14, 2023
1 parent 2585ec6 commit 35fceb9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

package edu.wpi.first.apriltag;

import static org.junit.jupiter.api.Assertions.assertEquals;

import edu.wpi.first.math.geometry.Pose3d;
import edu.wpi.first.math.geometry.Rotation3d;
import java.util.List;
import org.junit.jupiter.api.Test;

public class AprilTagFieldLayoutTest {
@Test
void protobufTest() {
var layout = new AprilTagFieldLayout(List.of(), 12.3, 4.2);
var layout =
new AprilTagFieldLayout(
List.of(
new AprilTag(0, new Pose3d(0, 1, 1, new Rotation3d())),
new AprilTag(1, new Pose3d(2, 3, 1, new Rotation3d()))),
12.3,
4.2);
var packedLayout = AprilTagFieldLayout.proto.createMessage();
AprilTagFieldLayout.proto.pack(packedLayout, layout);
var unpackedLayout = AprilTagFieldLayout.proto.unpack(packedLayout);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

package edu.wpi.first.apriltag;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down
2 changes: 1 addition & 1 deletion wpimath/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ task unitsHeaders(type: Zip) {
}

ext.includeDirs = [
project.file('src/main/native/include/units')
project.file('src/main/native/include/units')
]

ext.includeDirs.each {
Expand Down

0 comments on commit 35fceb9

Please sign in to comment.