¿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?
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
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.
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
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
Prueba pynxc http://code.google.com/p/pynxc /
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