![]() |
What do the Swigtype classes do in the WPI, I have looked at the documentation
http://first.wpi.edu/FRC/roborio/rel...a/classes.html is where I looked for the documentation, googling wpilibj swigtype had one result.Anyone know what they do?
|
Re: What do the Swigtype classes do in the WPI, I have looked at the documentation
Did you try just searching "Swigtype"?
While I am not 100% sure, I believe Swigtype is referring to this: http://www.swig.org/ Is there anything specific you are trying to do with them? |
Re: What do the Swigtype classes do in the WPI, I have looked at the documentation
Quote:
|
Re: What do the Swigtype classes do in the WPI, I have looked at the documentation
I just dove into the source and the header for all the files named SWIGTYPE_* is:
Code:
/* ----------------------------------------------------------------------------UPDATE: "SWIG is an interface compiler that connects programs written in C and C++ with scripting languages such as Perl, Python, Ruby, and Tcl." Maybe it has to do with the cross-compilation of wpilib????? |
Re: What do the Swigtype classes do in the WPI, I have looked at the documentation
In order to use certain HAL classes (written in C++) in the Java portion of WPILib, we create JNI bindings for those classes/functions. In the case of the new Talon SRX, we used swig to generate the JNI bindings for the CanTalonSRX class and then wrapped that with the CANTalon class. Those odd SWIGTYPE* classes are how swig handles c pointers in the JNI bindings. Teams should not need to use any of the swig-related classes; the CANTalon wrapper should implement all the necessary features.
|
| All times are GMT -5. The time now is 01:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi