Skip to content

Commit

Permalink
correct apriltag package names
Browse files Browse the repository at this point in the history
  • Loading branch information
sswadkar committed Jan 16, 2023
1 parent f2acdfd commit ec61922
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/kotlin/org/team4099/lib/apriltag/AprilTag.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.team4099.apriltag
package org.team4099.lib.apriltag

import edu.wpi.first.apriltag.AprilTag
import org.team4099.lib.geometry.Pose3d
import edu.wpi.first.apriltag.AprilTag as AprilTagWPI

class AprilTag(val id: Int, val pose: Pose3d) {
constructor(apriltagWpilib: AprilTag) : this(apriltagWpilib.ID, Pose3d(apriltagWpilib.pose)) {}
constructor(apriltagWpilib: AprilTagWPI) : this(apriltagWpilib.ID, Pose3d(apriltagWpilib.pose)) {}

val apriltagWpilib = AprilTag(id, pose.pose3d)
val apriltagWpilib = AprilTagWPI(id, pose.pose3d)

override fun equals(obj: Any?): Boolean {
if (obj is com.team4099.apriltag.AprilTag) {
if (obj is AprilTag) {
val other = obj
return id == other.id && pose == other.pose
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.team4099.apriltag
package org.team4099.lib.apriltag

import edu.wpi.first.apriltag.AprilTagFieldLayout
import org.team4099.lib.geometry.Pose3d
Expand Down

0 comments on commit ec61922

Please sign in to comment.