Giter Site home page Giter Site logo

okinter11 / custom-motion-capture Goto Github PK

View Code? Open in Web Editor NEW

This project forked from getrasa/custom-motion-capture-v2

0.0 0.0 0.0 28.17 MB

I designed and built a device capable of capturing body movements which are then mapped to a 3d model in Blender.

C++ 21.22% Python 78.78%

custom-motion-capture's Introduction

Custom Motion Capture

Introduction

This project started with me trying to prove to myself that I can build a motion capture suit on my own. But it ended up being probably the most challenging and satisfying project I've completed so far. The idea was to build a device which maps human body movements to a 3d model - wirelessly and hopefully at a reasonable framerate. Luckily, this build manages to read 17 points/joints at a whopping speed of 50fps, fully wirelessly and runs roughly 3-5 hours on a single charge.

Showcase

Examples of the device in action. (See Photos folder for more)

Example 1

ezgif com-gif-maker (4)

Example 2

ezgif com-gif-maker (5)

How it works?

The system relies on 3 components hardware-wise:

  • Sensors (17)
  • Receiver
  • Looper (Timer)

...and 2 software solutions:

  • Sensor Controller App
  • Server Receiver Script

Sensor reads its rotation (tilt) with respect to its initial orientation and then sends the data to the receiver as Quaternions. Local rotation is then translated to world rotation during software calibration.

Receiver reads sensor data and passes them to the computer via serial port.

Looper is ment to keep the sensors in sync so that radio signals don't overlap. Although the method is quite crude. Every 20 milliseconds the looper sends a signal to all sensors to begin sending data. Since each sensor has preassigned ID it begins waiting a hardcoded id * (x millis) amount of time for its turn.

Sensor Controller is an application I wrote using python & pyQt. Its purpose is to display which sensors are connected, what's their frame rate and run state. It's also used for calibration and streaming data to Blender.

Server Receiver is a python script run in Blender which reads sensory data through a local server and maps them to character armature. I've also attached a few useful scripts for saving & loading animations to a separate file.

custom-motion-capture's People

Contributors

getrasa 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.