GithubHelp home page GithubHelp logo

utcoupe / coupe14 Goto Github PK

View Code? Open in Web Editor NEW
1.0 26.0 1.0 67.91 MB

Python 1.91% C++ 19.65% C 73.28% Arduino 2.14% Shell 0.99% Objective-C 1.08% Java 0.01% Processing 0.02% Assembly 0.61% CSS 0.08% JavaScript 0.20% XC 0.02%

coupe14's Introduction

coupe14's People

Contributors

qchateau avatar noxy avatar furmi avatar v1rgul avatar schadocalex avatar antoine-g avatar liusiqi43 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar  avatar  avatar Xavier RODRIGUEZ avatar Florent Thévenet avatar  avatar Vladimir Kosmala avatar  avatar  avatar YANG Qiao avatar  avatar  avatar Louis Guidez avatar  avatar oiseauroch avatar  avatar Matthieu Zins avatar  avatar  avatar Pierre Laclau avatar  avatar alexandre avatar

Forkers

zinsmatt

coupe14's Issues

Fix relative paths

Actuellement beaucoup de path sont codés comme ceci :
"../../foo/bar"
Le problème c'est que ce path relatif est interprété par rapport à l'endroit ou l'on lance l'interpréteur Python. Il faut donc changer tout les path sous cette forme :

path = os.path.join(os.path.dirname(os.path.abspath(file)),"../../foo/bar/")

Cela permettra d'éviter tout bug de la part des liens relatifs

Reset arduino id_action

Les arduino doivent reset leur id_action à 0 dès qu'elles confirment ou demandent un reset

Centraliser les logs

Pour éviter d'avoir des prints fait dans des threads différents et qui ne sont pas sauvegardés ou que chacun le fasse à sa manière, il faudrait utiliser un module de log (j'en ai vu un qui existe et qui a l'air d'être le plus répandu) qui gère les niveaux et fichiers de log.

Il suffira donc d'accéder à cette instance et lui donner tous les messages à logger.

Porter goal manager sur subprocess

Le goal manager doit se trouver dans un subprocess. Pour cela la communication se fera par Pipe ou Queue Python (tout est dispo dans les modules).

La mémoire devenant séparée, cela implique quelques changements :
Le process "main" comprenant en autre mémoire et event, communiquera avec le subprocess.
Les messages manager-> main sont comme suit:
(robot_concerne, data_objectif+ID_objectif)
Le manager 'dit' au main qu'il ajoute un objectif à un robot, et lui donne les données necessaires, ainsi qu'un ID associé à cet objectif (id utile pour le retour, voir ci-apres)
Les message main->manager sont composés de cette manière : (ID_goal, etat, data).
Le main 'dit' à manager qu'il change l'etat qu'un goal d'ID 'ID_goal' (c'est l'id que lui a transmi le manager auparavant), etat peut etre 'fini' ou 'annulé' et lui transmet l'ensemble des data.
A chaque fois qu'un goal est fini ou annulé, le manager doit en calculer un noiveau et l'envoyer aussi-tôt à main.

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.