Difference between revisions of "Using Points in C Functions"
Line 2: | Line 2: | ||
Both regular points (bound to a fixed robot-type) and generic points can be passed as arguments to C functions. In addition, both types of points can also serve as C function parameters, differing in PROTO.PRO prototypes, but shareing identical C prototypes. | Both regular points (bound to a fixed robot-type) and generic points can be passed as arguments to C functions. In addition, both types of points can also serve as C function parameters, differing in PROTO.PRO prototypes, but shareing identical C prototypes. | ||
+ | == PROTO.PRO PROTOTYPES FOR FIXED ROBOT-TYPE POINTS == | ||
+ | <pre> | ||
+ | IMPORT_C CFUNC_PNT1(ByVal As Joint Of XYZ) As Joint Of XYZ | ||
+ | IMPORT_C CFUNC_PNT2(As Location Of XYZR, As Location[*] Of XYZR) | ||
+ | </pre> | ||
+ | == PROTO.PRO PROTOTYPES FOR GENERIC POINTS == | ||
<pre> | <pre> | ||
+ | IMPORT_C CFUNC_GEN_PNT1(ByVal As Generic Joint) As Generic Joint | ||
+ | IMPORT_C CFUNC_GEN_PNT2(As Generic Location, As Generic Location[*]) | ||
</pre> | </pre> |
Revision as of 11:20, 16 December 2012
Both regular points (bound to a fixed robot-type) and generic points can be passed as arguments to C functions. In addition, both types of points can also serve as C function parameters, differing in PROTO.PRO prototypes, but shareing identical C prototypes.
PROTO.PRO PROTOTYPES FOR FIXED ROBOT-TYPE POINTS
IMPORT_C CFUNC_PNT1(ByVal As Joint Of XYZ) As Joint Of XYZ IMPORT_C CFUNC_PNT2(As Location Of XYZR, As Location[*] Of XYZR)
PROTO.PRO PROTOTYPES FOR GENERIC POINTS
IMPORT_C CFUNC_GEN_PNT1(ByVal As Generic Joint) As Generic Joint IMPORT_C CFUNC_GEN_PNT2(As Generic Location, As Generic Location[*])