Pathweaver deployment help

Hey so today I tried getting pathweaver up and running on our robot and it was being very stubborn and refusing to run. I most definately made some stupid error that I can’t find so if anybody can help it would be greatly appreciated.

pseudo code in autoInit
String pathname = “Unnamed”;
Trajectory traj = new PathfinderFrc.getTrajectory(pathname + “.left”);
the output directory is inside the PathWeaver folder, as I did not set it per the documentation

If this function is being run on the robot, then there shouldn’t be any changes to your source files on your laptop.
From my brief experimentation with pathweaver, running the pathweaver application on your computer without supplying a directory, does generate the paths in your source files.

1 Like

I too was looking at Pathweaver this weekend. I’m not sure if its a bug or improper setup but I had to create a “paths” folder in the ( src>main>deploy) directory and copy the created paths from the Pathweaver>output>..pf1.csv

It is case sensitive but with these files in the deploy folder the sample code will be able to find the generated paths. I have skipped trying to get the sample code working because I’m not interested in using the Roborio as the path following processor and have jumped to trying to stream the data to TalonSRX’s and running Motion Profiling.


okay I’ll try that today thanks
(it worked thanks so much)

Alternativly, we have the paths generate into the deploy folder, and don’t use the supplied reading helper provided with the library so we don’t have to manually copy things.

	private static File getTrajectoryFile(String name) {
		File baseFile;
		if (RobotBase.isReal()) {
			baseFile = new File("/home/lvuser/deploy");
		} else {
			baseFile = new File(new File(System.getProperty("user.dir")).getAbsoluteFile(), "src/main/deploy");
		return new File(baseFile, "pathweaver/output/" + name + ".pf1.csv");
1 Like

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