Eventmap implementation - PathPlanner

Hi everybody, our team is struggling with implementing events in path planner. Every time we enable, we receive the following error:

“Unhandled exception: java.lang.NullPointerException: Cannot invoke “com.pathplanner.lib.PathPlannerTrajectory.getMarkers()” because “examplePath” is null.”

Here is the GitHub fork:

I think using PathPlanner.loadPathGroup(pathname, constraints) rather than loadPath should solve your issues

1 Like

We fixed the problem with it not moving, and we tried PathPlanner.loadPathGroup(pathname, constraints) and the events were still not working.

We are using to autobuilder. We have a separate class loading the path group. Our sendable chooser returns the path group and then the autobuilder builds the auto using the same event map

Thank you. I tried using the RamseteAutoBuilder and it worked perfectly to load the eventMap.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.