Skip to content

Instantly share code, notes, and snippets.

@glyphx
Created October 2, 2017 01:56
Show Gist options
  • Save glyphx/d6b50a5df453842dd21f506f1ecd25f1 to your computer and use it in GitHub Desktop.
Save glyphx/d6b50a5df453842dd21f506f1ecd25f1 to your computer and use it in GitHub Desktop.
#define DllExport __declspec(dllexport)
// https://docs.microsoft.com/en-us/cpp/build/exporting-from-a-dll-using-declspec-dllexport
extern "C"
{
DllExport int TestFunction();
DllExport int InitRobot();
DllExport int MoveArmHome(bool rightArm);
DllExport int MoveHand(bool rightArm, float x, float y, float z, float thetaX, float thetaY, float thetaZ);
DllExport int MoveHandNoThetaY(bool rightArm, float x, float y, float z, float thetaX, float thetaZ);
DllExport int MoveFingers(bool rightArm, bool pinky, bool ring, bool middle, bool index, bool thumb);
DllExport int StopArm(bool rightArm);
DllExport int CloseDevice(bool rightArm);
//shawn 10.1.17
DllExport int MoveArmAngularVelocity(bool rightArm, float av1, float av2, float av3, float av4, float av5, float av6, float av7);
DllExport int MoveArmAngularPosition(bool rightArm, int ap1, int ap2, int ap3, int ap4, int ap5, int ap6, int ap7);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment