[Butia-devel-list] Python primeras armas

Andres Aguirre aaguirre en fing.edu.uy
Mie Abr 6 01:25:34 UYT 2016


qué bueno daniel!
abzo


2016-04-06 0:38 GMT-03:00 Daniel Cancela <cancela.daniel en gmail.com>:

> Bueno. Prueba superada...
>
> >>> from pybot import usb4butia
> >>> robot = usb4butia.USB4Butia()
> >>> robot.getGray(6)
> 12224
> >>> robot.getGray(6)
> 12224
> >>> robot.getGray(6)
> 12096
> >>> robot.getGray(6)
> 12096
> >>> robot.getDistance(1)
> 35776
> >>> robot.getDistance(1)
> 35776
> >>> robot.getDistance(1)
> 35776
> >>> robot.getDistance(1)
> 35648
> >>>
>
> Ahora a empezar a armar pequeños programitas y probarlos!
> Muchas gracias por la mano
> Un abrazo
> Daniel
>
> El 5 de abril de 2016, 0:16, Alan Jhonn Aguiar Schwyn <alanjas en hotmail.com
> > escribió:
>
>> El problema es que estás tratando de ejecutar código python directo en la
>> terminal (que acepta comandos de terminal, valga la redundancia).
>> Entrá al intérprete python. Desde terminal ejecutás: python y das enter.
>> Luego si podés escribir código de python.
>> Te adjunto una captura..
>>
>> ------------------------------
>> Date: Tue, 5 Apr 2016 00:05:34 -0300
>> From: cancela.daniel en gmail.com
>> To: butia-devel-l en fing.edu.uy
>> CC: hrod01 en gmail.com
>> Subject: [Butia-devel-list] Python primeras armas
>>
>>
>> Hola, estoy haciendo mis primeras incursiones en pybot y ya de arranque
>> me estoy dando golpecitos....
>>
>> Tengo la versión 28de Turtlebots y estoy siguiendo la wiki.
>> Sin levantar Turtlebots estoy dentro intentadno importar el módulo y me
>> da un error.
>>
>> mateo en mateo-AOD270
>> /usr/share/sugar/activities/TurtleBots.activity/plugins/butia $ from pybot
>> import usb4butia
>> from: can't read /var/mail/pybot
>>
>> Luego si sigo para adelante como si todo hubiese funcionado me sigue
>> tirando mensajes no muy alentadores...
>>
>> mateo en mateo-AOD270
>> /usr/share/sugar/activities/TurtleBots.activity/plugins/butia $ robot =
>> usb4butia.USB4Butia()
>> bash: error sintáctico cerca del elemento inesperado `('
>>
>> Si ingreso en pybot e intento importar directamente desde allí o si lo
>> hago dando el path, recibo el siguiente error.
>>
>> mateo en mateo-AOD270
>> /usr/share/sugar/activities/TurtleBots.activity/plugins/butia/pybot $
>> import usb4butia
>> El programa «import» puede encontrarse en los siguientes paquetes:
>>  * imagemagick
>>  * graphicsmagick-imagemagick-compat
>> Intente: sudo apt-get install <paquete seleccionado>
>>
>> Alan "PYBOT" Aguiar que está pasando???
>>
>> Disculpas que no pudimos ir hoy pero no hubo forma de hacerlo.
>> Saludos
>> Daniel
>>
>> _______________________________________________ Butia-devel-l site list
>> Butia-devel-l en fing.edu.uy
>> https://www.fing.edu.uy/mailman/listinfo/butia-devel-l
>>
>
>
> _______________________________________________
> Butia-devel-l site list
> Butia-devel-l en fing.edu.uy
> https://www.fing.edu.uy/mailman/listinfo/butia-devel-l
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <https://www.fing.edu.uy/pipermail/butia-devel-l/attachments/20160406/71baa6cc/attachment.html>


Más información sobre la lista de distribución Butia-devel-l