Open SimarKareer opened 6 years ago
Can you send me the file you're trying to import?
also, run this again and send me the hserr*.log file you'll find mentioned in the crash log
Sent both via email
Resolved over email.
Note to those viewing: If you're using the Motion Profiling Generator (made by vannaka here), you need to use the _detailed.csv
path with Pathfinder's follower, since the non _detailed.csv
ones are designed for the Talon SRX motion profiling framework
We're having the same issue. I'm (pretty) sure that our .csv files are the _detailed
versions, but the JRE crashes when trying to lead them into Trajectory objects (with Pathfinder.readFromCSV
.)
The .csv files we're trying to load are in that gist as well. GitHub formats them into tables, but that's why the "Raw" button exists.
Hey! So my team managed to get it to work with the detailed csvs. Did u make sure to put them on the roborio? If your code is on GitHub you can send me a link and I can take a look. My team is 2729 and our code is public so feel free to look off of that as well.
Best of luck, Simar Kareer
From: Edwan Vi notifications@github.com Sent: Tuesday, February 6, 2018 4:49:23 PM To: JacisNonsense/Pathfinder Cc: SimarKareer; Author Subject: Re: [JacisNonsense/Pathfinder] Problem With Importing Pre-Generated CSV (#24)
We're having the same issue. I'm sure that our .csv files are the _detailed versions, but the JRE crashes when trying to lead them into Trajectory objects (with Pathfinder.readFromCSV.)
here's our hserr*.loghttps://gist.github.com/tkdberger/38935891781fc6342daf7ad8284bb55d
The .csv files we're trying to load are in that gist as well. GitHub formats them into tables, but that's why the "Raw" button exists.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/JacisNonsense/Pathfinder/issues/24#issuecomment-363576184, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOab2mUynGZ-4O_d2f7yZad8il4XpxAQks5tSMjigaJpZM4RldHa.
We have both CSVs on the robot alongside the compiled .jar version of our code. Might try what you guys have done to see if it works (i.e. putting it in another folder under ~
.)
Some time later, we're still segfaulting on loading the CSV files. We've tried both putting them in a different directory and setting the permissions on both files to 777
with chmod
. I've double-checked and as far as I can tell, our code is functionally identical to what @SimarKareer is running. No idea why it won't run for us.
e1: Interestingly, Pathfinder loads other trajectories made with writeToCSV
, which leads me to believe that vannaka/Motion_Profile_Generator
is somehow laxer in what it considers a "possible" path. I will file an issue with that repo when I have more time.
It may be that the paths are trying to overwrite your buffers. Vannaka's generator uses Pathfinder internally, so there should not be a huge difference. Send me your .csv files here and I'll take a look
They're in this gist (as well as the JVM crash log at the bottom.)
GitHub pretty-prints them as tables, so here's the raw right side and the raw left side. If memory serves, one of the two paths intersects itself for a sharp turn. We made a revised version without this intersection and it loaded fine.
When attempting to load csv from file on the roborio our code crashes:
Here's the error: