Questions tagged [myro]

Myro is a framework for programming robots. It is designed for use in Introductory Computing courses.

Myro (short for My Robot) is a framework for programming robots. It is designed for use in Introductory Computing courses.

Originally written in Python and developed by the Institute for Personal Robots in Education, it is now available for a large list of languages, including Python, Ruby, Scheme, C, C++ and Java.

19 questions
2
votes
0 answers

How to make a robot navigate a maze?

I'm using the Myro library with the Python language. I've had some weird results. My idea was to call the getObstacle sensors. left = getObstacle(0) center = getObstacle(1) right = getObstacle(2) I want the robot to move forward as long as the…
user3577397
  • 453
  • 3
  • 12
  • 27
2
votes
1 answer

import win32file not found with Myro

I'm trying to install the myro package so I can mess around with a Scribbler robot. After successfully installing the package, I get the following error: from myro import * Traceback (most recent call last): File "", line 1, in…
cybertextron
  • 10,547
  • 28
  • 104
  • 208
1
vote
2 answers

Python - coordinates to rotate/move instructions

coordinates = [(0, 2), (0, 1), (1, 2), (1, 1), (0, 0), (1, 0), (1, 1), (0, 1), (0, 0)] I have created a Python array stated above. It contains tuples of points (x,y). I will assume I start at the first point (not the orgin). I want to move to the…
Alec Fenichel
  • 1,257
  • 1
  • 13
  • 27
1
vote
1 answer

Python myro module importerror

I am completely new in Python. Installed just today in school purposes. I need to use myro module but I am getting this error ImportError: No module named 'myro' all the time. I've found out that I have installed older versions of Python already…
TomasJ
  • 289
  • 8
  • 21
1
vote
0 answers

Python/Myro: Error in atexit._run_exitfuncs

My beginners-level Python course uses Python 2.4 and Myro, the latter of which has caused me nothing but trouble. At this point in the class I can't even run the code I've written nine times out of ten, even though sometimes it will end up working…
1
vote
1 answer

automatic conversion between signed and unsigned bytes?

I am working with the Scribbler 2 robot and the Fluke 2 board, and communicating with the Fluke through Myro in Java. The Fluke board is a Bluetooth communication bridge between the Scribbler and the desktop client written in Java. It communicates…
spring
  • 18,009
  • 15
  • 80
  • 160
1
vote
1 answer

How would I complete number 2 on the following check list and/or just finish the program?

Here's the problem I'm working on: Assume that the developers of Myro are developing a new black box function called traveler(String str ) that moves a robot in a specific direction (i.e., North, South, East, or West) for a specific number of …
The Professor
  • 51
  • 1
  • 10
1
vote
1 answer

How do you play two different song files on python at the same time?

I'm trying to play song1 and song2 (the commented out one) at the same time, but I don't know how to do that using myro or winsound or whatever it is. Someone suggested using threading, but I'm not sure how to do that either, since I am just a very…
The Professor
  • 51
  • 1
  • 10
0
votes
3 answers

Verifying Mouse Position Within Triangle - Python

**This is part of programming course, and the modules we are asked to use are not generally used otherwise. I will do my best to explain my code (though it is pretty self-explanatory) EDIT: If you're curious, I must use Myro, and the code I use to…
Aaron
  • 992
  • 3
  • 15
  • 33
0
votes
0 answers

How can I solve a maze using stack or queue?

I'm using a scribbler robot to navigate a self made maze (which I will improve once I get the functionality working, the one I have in a video is just for testing purposes.) Maze I initially was trying to make the robot move left and right solely on…
user3577397
  • 453
  • 3
  • 12
  • 27
0
votes
1 answer

Robotics - Recursive function for fractal.

I'm currently working with Myro/Calico with Robotics. I'm trying to run a recursive function of a fractal. I'm using Python. I've been following pseudocode here. Fractal So far I've tried to implement the first step without recursion. And it runs…
user3577397
  • 453
  • 3
  • 12
  • 27
0
votes
2 answers

Finding RGB values

I want to write a function that prints out the color values, RGB, of a picture. The pictures are either colored all red, green, yellow or white. What I have is the following: def findColor(): pic=takePicture() red = 0 green = 0 …
Robben
  • 251
  • 3
  • 11
0
votes
1 answer

Myro - Moving robot in a circle based on the radius a user inputs

I'm using a Scribbler robot. There doesn't seem to be a function in the Myro library that has the robot move in a circle at a user specified radius. Here's what I was able to gather The distance between the left and right wheel of the robot is 6…
user3019802
  • 65
  • 2
  • 10
0
votes
2 answers

Myro programming - Making robot stop when it sees and obstacle

I'm using a scribbler robot and writing code in Python. I'm trying to get it to stop when it sees an obstacle So I created variables for the left obstacle sensor, the center obstacle sensor and the right obstacle sensor left = getObstacle(0) …
user3577397
  • 453
  • 3
  • 12
  • 27
0
votes
1 answer

"timeRemaining is not defined" error

I'm taking a robotics course and I imported the Myro library in Calico. timeRemaining is supposed to be a predefined function in the Myro library but it keeps saying it's undefined. There's an online handbook for Myro functions and even this does…
user3577397
  • 453
  • 3
  • 12
  • 27
1
2