Code Monkey home page Code Monkey logo

robperc-act_19-20_14's Introduction

Robotics Perception & Action Project 2019-20

Group 14 - Safety Module

Team members:

  • Boffo Marco
  • Morettini Simone
  • Rosales Pablo
  • Rousseau Thomas

Setup

Linux

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

Windows

Create environment: py -m venv venv

Activate environment: .\venv\Scripts\activate

Install dependencies pip install -r ./requirements.txt

Could be usefull follow this link https://www.raffaelechiatto.com/modificare-permessi-di-esecuzione-di-script-in-powershell/

Run Script

By running the script Measurement.py the module will collects data, analyses them and uses the state machine to identify the different states.

python Measurement.py name_file seconds 

For example: python Measurement.py test_run_1 10 will save the data in a file named test_run_1 and it will run for 10 seconds

The script will print the actual state in the terminal. For use this module inside a mobile robots, the print of the state should be changed. Depending on the design of the system can be establish that some pins become high depending on the state of the module.

Description of the repository content

  • Measurement.py: main script of the module, tasked with elaborating all the value at the frequency of 50 Hz;
  • digital_acquisition.py: code to read the signal received from the Arduino and to convert it to a value useful for our tasks;
  • statemachine.py: base class for implementing our state machine;
  • safetySM.py: state machine with the states and the transition rules obtained through our project;
  • utils.py: collection of methods for data analysis and extraction of feature from the raw data;
  • ADC_parallel/ADC_parallel.ino: code for receiving the analog voltage signal from the current sensor and convert it to current digital measurements for the RaspBerry.

The other files are used for tests or for minor function implementations.

Important info

To leave this repository less heavy we put the data in another repository. Rememeber to

git clone https://github.com/MesSem/RP-A_data.git

and to commit and push inside the folder RP-A_data for store new data and save on Github.

Open and analyse the data DataAnalisys.ipynb (it's in RP-A_data.git)

pip install notebook
jupyter notebook

robperc-act_19-20_14's People

Contributors

boffomarco avatar jesskelly avatar smorettini avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

boffomarco

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.