Package com.pathplanner.lib.util
Class PPLibTelemetry
java.lang.Object
com.pathplanner.lib.util.PPLibTelemetry
Utility class for sending data to the PathPlanner app via NT4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Enable competition mode.static void
registerHotReloadAuto
(String autoName, PathPlannerAuto auto) Register an auto for hot reload.static void
registerHotReloadPath
(String pathName, PathPlannerPath path) Register a path for hot reload.static void
Set the current path being followedstatic void
setCurrentPose
(Pose2d pose) Set the current robot posestatic void
setTargetPose
(Pose2d targetPose) Set the target robot posestatic void
setVelocities
(double actualVel, double commandedVel, double actualAngVel, double commandedAngVel) Set the path following actual/target velocities
-
Constructor Details
-
PPLibTelemetry
public PPLibTelemetry()
-
-
Method Details
-
enableCompetitionMode
public static void enableCompetitionMode()Enable competition mode. This will disable hot reload. -
setVelocities
public static void setVelocities(double actualVel, double commandedVel, double actualAngVel, double commandedAngVel) Set the path following actual/target velocities- Parameters:
actualVel
- Actual robot velocity in m/scommandedVel
- Target robot velocity in m/sactualAngVel
- Actual angular velocity in rad/scommandedAngVel
- Target angular velocity in rad/s
-
setCurrentPose
Set the current robot pose- Parameters:
pose
- Current robot pose
-
setCurrentPath
Set the current path being followed- Parameters:
path
- The current path
-
setTargetPose
Set the target robot pose- Parameters:
targetPose
- Target robot pose
-
registerHotReloadPath
Register a path for hot reload. This is used internally.- Parameters:
pathName
- Name of the pathpath
- Reference to the path
-
registerHotReloadAuto
Register an auto for hot reload. This is used internally.- Parameters:
autoName
- Name of the autoauto
- Reference to the auto
-