Class DashboardUtil
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.roadrunner.util.DashboardUtil
Set of helper functions for drawing Road Runner paths and trajectories on dashboard canvases.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawPoseHistory
(com.acmerobotics.dashboard.canvas.Canvas canvas, List<com.acmerobotics.roadrunner.geometry.Pose2d> poseHistory) static void
drawRobot
(com.acmerobotics.dashboard.canvas.Canvas canvas, com.acmerobotics.roadrunner.geometry.Pose2d pose) static void
drawSampledPath
(com.acmerobotics.dashboard.canvas.Canvas canvas, com.acmerobotics.roadrunner.path.Path path) static void
drawSampledPath
(com.acmerobotics.dashboard.canvas.Canvas canvas, com.acmerobotics.roadrunner.path.Path path, double resolution)
-
Constructor Details
-
DashboardUtil
public DashboardUtil()
-
-
Method Details
-
drawPoseHistory
public static void drawPoseHistory(com.acmerobotics.dashboard.canvas.Canvas canvas, List<com.acmerobotics.roadrunner.geometry.Pose2d> poseHistory) -
drawSampledPath
public static void drawSampledPath(com.acmerobotics.dashboard.canvas.Canvas canvas, com.acmerobotics.roadrunner.path.Path path, double resolution) -
drawSampledPath
public static void drawSampledPath(com.acmerobotics.dashboard.canvas.Canvas canvas, com.acmerobotics.roadrunner.path.Path path) -
drawRobot
public static void drawRobot(com.acmerobotics.dashboard.canvas.Canvas canvas, com.acmerobotics.roadrunner.geometry.Pose2d pose)
-