Giter Site home page Giter Site logo

justinelhalabi / ps3-joystick-command-parsing-into-csv Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 16 KB

This code parses the input commands from a PS3 six-axis joystick into a more readable .csv file format. It takes the x-y-z commands with the corresponding time and places them in rows. This code also detects and displays when the X, Square, Circle, or triangle buttons are pressed.

Python 100.00%
ps3-controller parsing yaml yaml-parser csv-parser sixaxis drone ardrone-autonomy gazebo ardrone-helpers

ps3-joystick-command-parsing-into-csv's Introduction

PS3-Joystick-Command-Parsing-into-CSV

rtest.py: (Python 2.7) This code parses the input commands from a PS3 joystick into a more readable .csv file format. It takes the x-y-z commands with the corresponding time and places them in rows. This code also detects and displays when the X, Square, Circle, or triangle buttons are pressed.

rtest2.py: (Python 3) This code takes all the .csv files in a folder (which is set in the code by the user) and takes all the velociy commands of the joystick and places them in an array format as such: [x y z]. It also displays a histogram with some data analytics do get the average number of samples for every sequence. It also displays on the terminal where the code is ran: the number of samples found, min and Max size, Mean, Median, and Deviation.

If you're looking to use these scripts and our data, please cite our work:

J. Elhalabi, M. Al Aawar, M. Kassem Zein, I. H. Elhajj, andD. Asmar, “Drone motion primitive dataset,” 2020. [Online].Available: http://dx.doi.org/10.21227/7wb1-0r93

ps3-joystick-command-parsing-into-csv's People

Contributors

justinelhalabi avatar maa98 avatar

Watchers

 avatar  avatar

Forkers

maa98 maa989

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.