Skip to content

Instantly share code, notes, and snippets.

@howiemnet
howiemnet / pumaJacobian.c
Created April 1, 2015 06:23
Puma Jacobian functions from RCCL / RCI, (C) 1987, 1991 J Lloyd and V Hayward
/*-=-=-=-=-=-=-=-=-=-=-=- RCCL/RCI Notice of Copyright -=-=-=-=-=-=-=-=-=-=-*
* *
* Copyright (C) 1987, 1991 by John E. Lloyd and Vincent Hayward. *
* *
* Information on copyright permissions, as well as a complete *
* disclaimer of warranty, is given in the file COPYRIGHT. *
* *
*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/*=~=~=~=~ McGill-Computer-Vision-and-Robotics-Laboratory--C-Module ~=~=~=~=
// serial port <--> Motion Mind 3 latency test
import processing.serial.*;
Serial myPort; // The serial port
long myRet;
int inByte;
byte[] myOutString = {
// commands: READ REGISTER, Address (5), Register 17 (fw revision), checksum:
29, 5, 17, 51
};
@howiemnet
howiemnet / gist:4aef79384b86c06e6f7d
Last active August 29, 2015 14:15
Pyserial in Blender on Mac
# Install a full version of Python 3.4. It'll end up
# in /Library/Frameworks. Install PySerial in there too.
# This code can then be run in Blender
import sys
sys.path.append("/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages”)
import serial
s = serial.Serial("/dev/tty_YOURPORTHERE",9600)
my_string = "hello"