Giter Club home page Giter Club logo

robotnik's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

robotnik's Issues

Create Gitter chat

Should we create a Gitter chat for general brainstorming and ideas instead of cluttering up issues?

Artefacts on code view

Issues when you swap from block view to code view and CSS misaligns things in the correct order so you get the toolbox drawer peeking through.

Better execution of generated code

Currently, the way we run generated code is to write it to the local filesystem and execute it as a child process. Two issues:

  • Right now it just writes into the current directory - this sometimes fails due to permissions. I tried getting this into a tmp directory, but it wasn't working, so I left it like this so I could finish in time for the workshop.
  • There is probably a nicer, safer way of executing this code. Maybe we could do so in a sandbox in the current process?

Fill out block wishlist

In the interest of starting to plan some future blocks and functionality, I've started a wiki for planned blocks. Please drop your ideas in here:

Block Wishlist

Workshop Format

I'm thinking of using a workshop format like this to define components and workshop steps. This would define the blocks that appear during the workshop, help generate the pre and post code, possibly generate a schematic, and have helpful steps to guide people. I'm going to work toward making a proof of concept that uses this. Later, this format could be generated within robotnik its self as part of the 'build' or 'circuit' tab.

Thoughts?

{
  title: 'Makerland Workshop',
  description: 'This is a workshop for Makerland Conference using a sumobot kit
  with an LED and a proximity sensor.',
  components: [
    {
      component: 'Led',
      pin: 13
    },
    {
      component: 'Servo',
      pin: 7,
      type: 'continuous'
    },
    {
      component: 'Servo',
      pin: 11,
      type: 'continuous'
    },
    {
      component: 'Sensor',
      pin: 'A0'
    }
  ],
  exercises: [
    {
      text: 'First, try to make an LED blink when you push a button.'
    },
    {
      text: 'Now make a motor turn clockwise'
    }
  ]
}

Preserve edited code

When someone edits code in the code tab, then changes the blocks, their changes will disappear. We should probably create a new tab with their edited version preserved, or at least prompt them if they really want to throw away their changes. Could also prompt before creating a new tab.

What's next?

I love what you've done so far! I am VERY interested in what your plans are for this. I am really excited about the idea of creating a robotics IDE for kids, so this is a great start.

My vision for an IDE would be something that has configurable components and exposes more of the Johnny-Five APIs for different objects. I'd like to let the user create pre-fabbed configurations for different bots based on things like servos, and reflectance arrays, and then let loose with a Blockly interface.

I went down the path of creating a Scratch to J5 Binding but it is really limited in what can be done. I had some ideas, but really, a Blockly interface is much more versatile.

Anyways, I'd be happy to contribute, or if you'd rather I just fork and run with it on my own (I don't see a license?), I'm happy to do that as well.

Thoughts?

Save state

It would be great if we saved state between sessions, so that if something unexpected happens, people can resume their block / code states. Dragging blocks is tedious, so its not fun to recreate something you lost. This could be saved on the client side using window.name or cookies or html 5 storage. It could also be saved to the filesystem.

Use sockets

I think I tried to get sockets working before Makerland, but had some compatibility issues. To solve the problem as quickly as possible, I am sending messages between the client and server using a POST request on '/message'. Using sockets would be much more responsive and real time.

More flexible boilerplate code

Right now the boilerplate code (that surrounds the generated code) is hard coded in robotnik.js as preCode and postCode. To work for @BrianGenisio's plan of pluggable configurations, we're going to need to define the hardware components and pins elsewhere.

We should also have flexible boilerplate so we can support different kinds of boards like the SparkCore that will initialize Johnny-Five differently.

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.