Giter Club home page Giter Club logo

jyro's People

Contributors

dsblank avatar keithohara avatar lmeeden1 avatar quincifer avatar yummymacchiato avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

jyro's Issues

Downward-facing light sensors

Some thought relating to pros / cons of downward facing light sensors:

  • requires ability to draw (coloured) lines on the floor (i.e. to give the sensor something to sense)
    • could these be zero height boxes?
    • would they affect 3D simulation performance?
    • ability to load in a flat PNG or other image type as floor overlay
  • how would sensor(s) be indicated on robot and where should they be placed? What sort of resolution should they have:
    • 0..1: "reflectivity"
    • rgb: 3-tuple

Complex behaviour can arise if you have line following robot(s) that also draw a trail of their own (does Jyro have a trail/penup/pendown?)

What sort of activity would it enable?

  • line stopper
  • line follower

BUT we can sort of do the same with ultrasound sensor? Line X possibly simpler to get your head round; it's also the sort of thing provided by numerous other simple edu-robotics activities so there are lots of activities and solution s to crib from.

Trace displays for x-slider movements but not y-slider

If I define a simple world:

from jyro.simulator import Pioneer
from jyro.simulator import VSimulator

robot_name = "Pioneer"
robot = Pioneer(robot_name, 5, 5, 0)

def world(sim):
    # Bounding box around the simulated world
    sim.addBox(0, 0, 10, 10, fill="backgroundgreen", wallcolor="lightgrey")

VSimulator(robot, world);

then check Trace Path in the simulator, if I move the x-slider the trace line is drawn, but if I move the y-slider, whilst the robot is moved, the line is not drawn.

(Doug, I will try to submit PRs, but for now I need to get on with just trying to crank out some activities to demo to others on my module team with whatever's to hand; I'll log issues here as I come across them, or if you'd rather keep things from getting cluttered here, I can post them to a fork of this repo.)

Robots can't see each other

Robots can't see each other, in sensor readings nor in vision. Wouldn't take too much to add an approximate view (small, colored bounding box).

Floating World View Widget or JupyterLab Support?

We're looking for a new simulator for an online distance education course, and I'm currently playing with every simulator I can find (which isn't many; review will be here).

Playing with Jyro (leading candidate:-), I noted that embedding the simulator world view beneath a single notebook code cell can make it hard to see what's going on in the world as a code is built up, perhaps across several cells.

The ipyturtle widget allows a turtle canvas to be embedded below a code cell or floated over the notebook as the notebook scrolls beneath. It'd be handy if this floating feature was available in jyro.

At the moment it looks the simulator is rendered via display() [ https://github.com/Calysto/jyro/blob/master/jyro/simulator/simulator.py#L593 ] whereas ipyturtle creates a div with an appropriate style attribute (fixed or static; https://github.com/gkvoelkl/ipython-turtle-widget/blob/master/js/lib/example.js#L60 ).

How easy / hard would it be to support a floating simulator world view widget? Any issues likely to arise?

I did also wonder whether Jyro would work in JupyterLab, and allow the simulator window to be torn off into it's own panel, but that seemed not to work? (I don't really understand Jupyterlab. It seems far more complex to try to build extensions in than notebooks?!)

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.