Giter Site home page Giter Site logo

operationdemo's Introduction

Operation Board Game

This repository contains a detail guide to set up the UR3, Gripper and Leap Motion sensor for operation board game. It also contains the source code.

Software Overview

This project can be separated into 3 isolated parts, a hand tracker, a UR3 Robot arm driver, and a server that speaks in between the two systems.

Hand tracker

I chose to develop in C because LeapMotion has the most complete API in C.

The main job of this piece of code is it calculates the distance moved by the hand between frames and maps that to the next relative joint positions of the robot. The program also checks for any meaningful gestures defined by the game for triggerring certain predefined movement on the robot, such as closing the gripper when user clenches the fist. The translated information will be saved in file "Coordinate.txt" where the socket will read from.

Socket Server

The reason why socket server and hand tracker were not written together in a single program is that I wanted to make them isolated from each other. In this way it is easier to maintain and debug. I coded the server in Python for its simplicity.The job of this program is to read strings from "Coordinates.txt" and send it to the client/robot.

UR3 Robot arm driver

This driver is written in Universal Robot Programming language (urp). It's multi-threaded, socket and driver each takes one thread. The joint positions received by the the socket is read by the driver code which then moves the robot arm to the target position. This is how a user's hand movement gets translated to robot arm movement.

operationdemo's People

Contributors

jojojolin avatar

Watchers

 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.