JaciBrunning / Pathfinder

Cross-Platform, Multi-Use Motion Profiling and Trajectory Generation
MIT License
255 stars 78 forks source link

Native error in path generation #31

Closed edwanvi closed 6 years ago

edwanvi commented 6 years ago

When I try to call path generation (code here, mainly Robot.java and PathBuilder.java), there's some form of native code error. The Driver Station consistently gives the same log:

 # 
 # A fatal error has been detected by the Java Runtime Environment: 
 # 
 #  SIGSEGV (0xb) at pc=0xab410158, pid=4602, tid=0xb5370470 
 # 
 # JRE version: OpenJDK Runtime Environment (8.0_131-b57) (build 1.8.0_131-b57) 
 # Java VM: OpenJDK Client VM (25.131-b57 mixed mode, Evaluation linux-aarch32 ) 
 # Problematic frame: 
 # C  [libpathfinderjava.so+0x6158]  pf_trajectory_fromSecondOrderFilter+0x88 
 # 
 # Core dump written. Default location: //core or core.4602 (max size 2048 kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java again 
 # 
 # An error report file with more information is saved as: 
 # /tmp/hs_err_pid4602.log 
 # 
 # If you would like to submit a bug report, please visit: 
 #   http://www.azulsystems.com/support/ 
 # The crash happened outside the Java Virtual Machine in native code. 
 # See problematic frame for where to report the bug. 
 #
JaciBrunning commented 6 years ago

This usually shows that the path you're trying to generate is invalid. This is one such path, since angles are relative to the positive X axis, trying to go from Y=0 to Y=1 @ 0deg, without any translation in the X direction, this path isn't possible.

edwanvi commented 6 years ago

Alright.

That solves my issue, but out of curiosity, is there a tool anywhere to make images like the ones in README?

JaciBrunning commented 6 years ago

I use Tableau with the .csv files generated by pathfinder, but you can also check out Vannaka's Motion Profile Generator GUI for Pathfinder here which many find useful