Skip to content

Commit

Permalink
Fix publisher leak
Browse files Browse the repository at this point in the history
  • Loading branch information
caparomula committed Jan 11, 2025
1 parent 64838f4 commit 1264a55
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ private synchronized StructPublisher<Pose2d> getPose2dPublisher(String name) {
var publisher = posePublishers.get(name);
if (publisher == null) {
publisher = NetworkTableInstance.getDefault().getStructTopic(name, Pose2d.struct).publish();
posePublishers.put(name, publisher);
}
return publisher;
}
Expand Down
34 changes: 34 additions & 0 deletions vendordeps/AdvantageKit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"fileName": "AdvantageKit.json",
"name": "AdvantageKit",
"version": "4.0.0",
"uuid": "d820cc26-74e3-11ec-90d6-0242ac120003",
"frcYear": "2025",
"mavenUrls": [
"https://frcmaven.wpi.edu/artifactory/littletonrobotics-mvn-release/"
],
"jsonUrl": "https://github.com/Mechanical-Advantage/AdvantageKit/releases/latest/download/AdvantageKit.json",
"javaDependencies": [
{
"groupId": "org.littletonrobotics.akit",
"artifactId": "akit-java",
"version": "4.0.0"
}
],
"jniDependencies": [
{
"groupId": "org.littletonrobotics.akit",
"artifactId": "akit-wpilibio",
"version": "4.0.0",
"skipInvalidPlatforms": false,
"isJar": false,
"validPlatforms": [
"linuxathena",
"windowsx86-64",
"linuxx86-64",
"osxuniversal"
]
}
],
"cppDependencies": []
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fileName": "ChoreoLib-2025.0.0.json",
"fileName": "ChoreoLib-2025.0.1.json",
"name": "ChoreoLib",
"version": "2025.0.0",
"version": "2025.0.1",
"uuid": "b5e23f0a-dac9-4ad2-8dd6-02767c520aca",
"frcYear": "2025",
"mavenUrls": [
Expand All @@ -13,7 +13,7 @@
{
"groupId": "choreo",
"artifactId": "ChoreoLib-java",
"version": "2025.0.0"
"version": "2025.0.1"
},
{
"groupId": "com.google.code.gson",
Expand All @@ -26,7 +26,7 @@
{
"groupId": "choreo",
"artifactId": "ChoreoLib-cpp",
"version": "2025.0.0",
"version": "2025.0.1",
"libName": "ChoreoLib",
"headerClassifier": "headers",
"sharedLibrary": false,
Expand Down

0 comments on commit 1264a55

Please sign in to comment.