Code Monkey home page Code Monkey logo

bottle101 / pupil_ros Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jhoogmoed/pupil_ros

0.0 1.0 0.0 4.86 MB

This ROS package maps user's gaze data from a Pupil Labs eye tracker, onto a different video feed, using markers, homography, and feature matching. This package is made by T.A.B. De Boer, J. Hoogmoed, N.M. Looye , J.R.P. van der Toorn, and R.P. de Vos as bachelor design project. Delf University of Technology, Mechanical Engineering, department of BioMechanical Engineering.

License: Apache License 2.0

CMake 1.19% Python 98.81%

pupil_ros's Introduction

Pupil ROS

This ROS package maps user's gaze data from the Pupil Labs eye tracker, onto a different video feed, using markers and feature matching.

Requirements

  1. Ubuntu 16.04

  2. ROS Kinetic installation. Older versions may work but are not tested.

Installation

  1. Install Pupil Capture Download here

  2. Install pip

    sudo apt-get install python-pip

    sudo pip install --upgrade pip

  3. Install zmq

    sudo pip install pyzmq

  4. Install sox

    sudo apt-get install sox

  5. Place the folder pupil_ros to your catkin workspace, and build the ROS package.

    cd Path/To/catkin_ws

    catkin_make

    source devel/setup.bash

    This will build six custom ROS messages: pupil, pupil_positions, gaze, gaze_positions, surface_position, accu

  6. Print markers

    Print the QR-code like trackers. They can be found inside the markers/ folder

Using the package

  1. Make pupil_zmq_ros_pub.py executable

    cd to the installed pupil_ros package in your catkin workspace:

    cd ~/catkin_ws/src/pupil_ros/scripts

    chmod +x pupil_zmq_ros_pub.py main_run_v4.py audio_output.py start_pupil.py

  2. Launch ROS package:

    roslaunch pupil_ros pupil_ros.launch

    Pupil Capture will launch automatically.

  3. Set correct settings in Pupil Remote:

  • Load plugin Pupil_Remote and Frame_Publisher

  • Set localhost to 50010

  • Set Frame Publisher to bgr

  1. Calibrate Pupil Remote

    Calibrate the eye tracker using a calibration method of your choice.

How to grab the accuracy data

  1. Setup rosbag record

    rosbag record matcher/gaze_accu

  2. Quit recording when ready

  3. Make csv file with custom BAGFILE_NAME and LOGFILE_NAME (or logfile.txt)

    rostopic echo -b BAGFILE_NAME.bag -p /matcher/gaze_accu > LOGFILE_NAME.csv

License

This software is released under the Apache 2.0 license.

pupil_ros's People

Contributors

jhoogmoed avatar rikdevos avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.