¿Hay algún intérprete de Ruby o Python para Lego Mindstorm?


Quiero empezar a codificar en Python o Ruby. Ya que tengo un kit de Lego Midstorms pensé que sería bueno programar contra él. ¿Hay buenos traductores / interpeters para el ladrillo Mindstorms?

Author: vainolo, 2009-06-19

4 answers

Los proyectos nxt-python y ruby-nxt son interfaces de control remoto para NXT. Ambos se ejecutan en un PC y controlan remotamente el NXT a través de Bluetooth o USB. Si está buscando ejecutar firmware alternativo en el NXT, hay varias alternativas diferentes.

Steve Hassenplug tiene una página web con una lista completa de todas las opciones alternativas conocidas de firmware y control remoto.
NXT Software

 7
Author: Louis Davis,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2009-06-19 23:43:24

Con python puedes usar jaraco.nxt o nxt-python para controlar el robot NXT. No tengo uno así que nunca he usado ninguno de esos.

Encontramos este ejemplo usando nxt-python:

#!/usr/bin/env python

import nxt.locator
from nxt.motor import Motor, PORT_B, PORT_C

def spin_around(b):
        m_left = Motor(b, PORT_B)
        m_left.update(100, 360)
        m_right = Motor(b, PORT_C)
        m_right.update(-100, 360)

sock = nxt.locator.find_one_brick()
if sock:
        spin_around(sock.connect())
        sock.close()
else:
        print 'No NXT bricks found'

Parece agradable.

 3
Author: nosklo,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2009-06-19 11:48:10

Aquí hay un proyecto de código abierto para Ruby

 1
Author: Praveen Angyan,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2009-06-19 11:19:48
 1
Author: Samarth agarwal,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-09-11 20:18:54