artificialintelligencetoolkit / jyro Goto Github PK
View Code? Open in Web Editor NEWJupyter & Robots
Jupyter & Robots
I am not an expert but it doesn't look so hard: https://conda-forge.org
Get an error:
Class OutputModel not found in module jupyter-js-widgets
We need to determine what the maximum possible translate and rotate should be for robot.move and enforce them.
Some thought relating to pros / cons of downward facing light sensors:
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?
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.
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.)
What license is Jyro released under?
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).
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?!)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.