Skip to content

Instantly share code, notes, and snippets.

View SysOverdrive's full-sized avatar
🖼️
Focusing

SysOverdrive

🖼️
Focusing
View GitHub Profile

Gsoc 2018

The final pull request submitted for evaluation : https://github.com/robcog-iai/UPupilLabsVR/pull/1

Brief Objectives.

  1. Create a GUI for the research institute that can confortobly edit object tags and visualize their properties.-
  2. Have the eye-tracking plugin work with Pupil Head Mounted Eyetracker.

What has been done.

  1. Integration of an editor gui with the existing tags modules and their capabilities.
  2. Integration of the Pupil Eye-tracker in Unreal with limited functionality.
// ClientForZmq.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <zmq.hpp>
#include <string.h>
#include <stdio.h>
#include "stdlib.h"
#include "string.h"
#include <msgpack.hpp>
typedef struct center {
center() : x(0), y(0), z(0) {}
int x;
int y;
int z;
MSGPACK_DEFINE(x, y, z);
};
typedef struct normal {
int main(void)
{
//Variables
zmq::context_t *ctx;
zmq::socket_t *subSocket;
//Initialise context and connect
ctx = new zmq::context_t(1);
std::string addr = "tcp://127.0.0.1:";
std::string req_port = "5555";
//PINS
int outputPinAnalog = 11;
int interuptPin = 3;
//VALUES
unsigned long timp1, timp2;
float frecventa;
int motorValue = 125;//jumatate din viteza
void setup()
#include <Wire.h>
#define SLAVE_ADDRESS 0x04
int number = 0;
int state = 0;
//ENCODER PART------------------
unsigned long timp1, timp2;
float frecventa;
//PINS
/*
Folosim un Potentiometru pentru a simula throthle -ul de pe telecomanda legat la JR connector
ESC NOU SE PORNESTE CU PWM MARE SI DUPA MIC
*/
#include <Servo.h>
/*
Folosim un Potentiometru pentru a simula throthle -ul de pe telecomanda legat la JR connector
ESC NOU SE PORNESTE CU PWM MARE SI CU DE AKA NUC
*/
#include <Servo.h>
Servo myServo; // create servo object to control a servo
/*
Controlling a servo position using a potentiometer (variable resistor)
by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>
modified on 8 Nov 2013
by Scott Fitzgerald
http://arduino.cc/en/Tutorial/Knob
*/
// la control la pornire trebe duty cicle sub 6%
/***
/*
Controlling a servo position using a potentiometer (variable resistor)
by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>
modified on 8 Nov 2013
by Scott Fitzgerald
http://arduino.cc/en/Tutorial/Knob
*/
// la control la pornire trebe duty cicle sub 6%
/***