We are able to get the FollowPathWithEvents working, but having problems with the Autobuilder. RobotContainer.java (10.1 KB)
Trying to implement the autobuilder in the RobotContainer class and getting a constructor not defined error.
Any help greatly appreciated.
SwerveAutoBuilder autoBuildsr2 = new SwerveAutoBuilder(
s_Swerve::getPose,
s_Swerve::resetOdometry,
Constants.Swerve.swerveKinematics,
new PIDController(0.4, 0, 0),
new PIDController(0.2, 0, 0),
s_Swerve::setModuleStates,
eventMap,
true,
s_Swerve);
Popping back into this thread to say thank you to the OP. With this program, our students were able to adjust auton between matches for our first competition and eventually get events working so we could then autobalance.
Much appreciation!
BTW, we used the full auton builder instead of FollowWithEvents from my earlier post and that fixed up the issue.
Is it possible to have a certain path of a json path group run slower than the others?
When there’s a 180 degrees holonomic rotation between 2 points I’d want to give it more time to rotate.
Yes, the loadPathGroup method takes a vararg for PathConstraints. So, you can add as many as you want. If you add less than the number of segments in the group, the last one will be used for the rest of them.
I’m back. Just want to thank you for this amazing tool that has helped us dramatically this season. We are just having one minor inconvenience but it would not need to be fixed. It seems that pathplanner crashes when you try to zoom in. Thank you again.
How do I use a Ramsete Auto Builder for a differential drivetrain. There are 4 different ones and I dont know which one to use. Also whats the difference between using a PPRamseteController and RamseteAutoBuilder. It also throws an error when i try to reference the getWheelSpeedsFunction from my drivetrain subsystem.
Hello, I’ve been using PathPlanner for a long time to create auto paths. First, let me say its a great piece of software .
I just have one small question. Will an auto path work properly if we are on a different alliance and start on the other side of the field? Or, do we have to create two auto paths: one if we are on blue alliance and one if we are on red alliance?
Any suggestions for not being able run PP server? We are setting the port on RobotInit() and have set up 10.TE.AM.2 with the same port on PP app. We can’t get PP to connect to the robot. Have tested on different laptops with (I believe the same) MacOS.
There is a constructor that has a boolean parameter if you want to mirror the path. If you are going to mirror the path, make the path on the blue alliance in PathPlanner.
We tried putting it in the constructor of RobotContainer, didn’t work. Tried putting it in RobotInit right after initializing container. Well, I guess it wasn’t the first line. Would that make a difference though?
Just to be clear, did you do 10.TE.AM.2 or 10.68.38.2 in the GUI? Dumb question but just making sure.
Beyond that, macOS can be kind of picky with local network access sometimes. The permissions should be configured for it but maybe try a windows laptop if you can.
Yep, running it on Windows resolved it. Do you think it would be possible to get it working for MacOS? I opened an issue here. I am not sure if this is an actual bug or only something specific to my configuration. Let me know how to provide more information to diagnose the issue if it is actually broken.
Hello, i dont know if somebody has already asked this, but we are having some problems with the heading. While looking at the blue driver station, wpilib odometry reads 180 degrees, while in pathplanner we try to put it at that heading but the final path ends up being a bit strange.