Skip to content

Instantly share code, notes, and snippets.

@glyphx
Created October 7, 2017 02:18
Show Gist options
  • Save glyphx/6f0a87c3dd4dbbeb0a52f611491bf68d to your computer and use it in GitHub Desktop.
Save glyphx/6f0a87c3dd4dbbeb0a52f611491bf68d to your computer and use it in GitHub Desktop.
after float updated to movearmangularposition
#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, float ap1, float ap2, float ap3, float ap4, float ap5, float ap6, float ap7);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment