Skip to content

Instantly share code, notes, and snippets.

#include <Windows.h>
#include "CommunicationLayerWindows.h"
#include "CommandLayer.h"
#include <conio.h>
#include "KinovaTypes.h"
#include <iostream>
using namespace std;
#include "ARM_BASE_ANGLES.h"
#include <Windows.h>
#include "CommunicationLayerWindows.h"
#include "CommandLayer.h"
#include <conio.h>
#include "KinovaTypes.h"
#include <iostream>
#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);
#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);
#include "ARM_base.h"
#include <Windows.h>
#include "Lib_Examples\CommunicationLayerWindows.h"
#include "Lib_Examples\CommandLayer.h"
#include <conio.h>
#include "Lib_Examples\KinovaTypes.h"
#include <iostream>
#include <Windows.h>
#include "CommunicationLayerWindows.h"
#include "CommandLayer.h"
#include <conio.h>
#include "KinovaTypes.h"
#include <iostream>
using namespace std;
@glyphx
glyphx / Program.cs
Created September 26, 2017 10:12
312 am
using System;
using Random = System.Random;
using System.Threading;
using System.IO.Ports;
using System.Diagnostics;
public class Hand_CMD_Test
{
private static SerialPort handPortL;
private static SerialPort handPortR;
@glyphx
glyphx / lesson1.ipynb
Created January 12, 2017 07:10
fixed images - odd fix, had to paste the same command twice:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@glyphx
glyphx / lesson1.ipynb
Created January 12, 2017 06:10
fixed error
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@glyphx
glyphx / lesson1.ipynb
Created January 12, 2017 06:08
fixed error
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.