Lego Mindstorms 编程 - 您使用/推荐哪种语言/IDE?
我是新手,目前正在使用 Lego Mindstorms IDE 使用的类似可视化流程图的语言。 图表语言的可读性给我留下了深刻的印象,但缺少实际代码的灵活性。 我正在想象我想要尝试的复杂项目,但实际上并不想将它们实现为一个巨大的流程图! 哈哈:)
我知道您可以使用其他语言/IDE,但不太确定它们是什么或使用哪个。 您推荐使用哪种 IDE/语言来对 Lego Mindstorms 项目进行编程?
我更喜欢一个仍然允许我点击“运行”并通过蓝牙将程序发送到 NXT 程序块并立即运行的 IDE。
更新: 我最终选择了lejos。 主要是因为我刚开始在工作中学习Java,它和我已经熟悉的C#非常相似。 我会推荐 Lejos,因为 Java 是一种高级、功能丰富的语言,并且有很好的 IDE。 Eclipse 是一个很棒的 IDE,lejos 有一个插件,ant 构建脚本可以一步完成构建您的项目、将其加载到 NXT 程序块并在设备上运行的过程。 Lejos 确实需要在您的 NXT 砖上安装特殊固件,但这一切都很顺利,如果您愿意,您可以随时重新安装旧的 Mindstorms 固件。
如果您想查看其他语言和 IDE 选项,我强烈推荐我偶然发现的这张图表:http://www.teamhassenplug.org/NXT/NXTSoftware.html
I'm new to it and currently using the visual flow-chart like language that the Lego Mindstorms IDE uses. I'm impressed with how readable the diagramming language is but missing the flexiblity of actual code. I'm imagining complicated projects I want to try out and don't really want to implement them as a gigantic flow chart! lol :)
I know there are other languages/IDEs you can use but not really sure what they are or which to use. What IDE/language do you recommend for programming Lego Mindstorms projects?
I'd prefer an IDE that still allows me to hit Run and send the program down to the NXT brick via bluetooth and run it immediately.
UPDATE:
I ended up choosing lejos. Mainly because I've just started learning Java at work which is very similar to C# which I'm already familiar with. I would recommend Lejos since Java is a great high level, feature-rich language and there are nice IDE's for it. Eclipse is a great IDE which lejos has a plugin for and ant build scripts make building your project, loading it to the NXT brick and running it on the device a one step process. Lejos does require special firmware on your NXT brick but that went fine and you can always put your old Mindstorms firmware back on later if you want.
If you want to check out other language and IDE options I'd highly recommend this chart I stumbled across: http://www.teamhassenplug.org/NXT/NXTSoftware.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
仅供参考,我发现了这个非常有用的不同语言的功能比较表,您可以使用它对 NXT 进行编程:
http ://www.teamhassenplug.org/NXT/NXTSoftware.html
FYI, I came across this extremely helpful feature comparison chart of different languages which you can program the NXT in:
http://www.teamhassenplug.org/NXT/NXTSoftware.html
另一个选择是 Microsoft Robotics Studio。
Another option is Microsoft Robotics Studio.
我认为这是一本关于使用 NXC(不是严格的 C)语言对 Mindstorm NXT 进行编程的好书。
“乐高 Mindstorms NXT Power 编程:C 语言机器人” John C. Hansen
通过少量的修改,您就可以让 NXC 与您最喜欢的 IDE 一起工作。
I think this is a good book about programming your Mindstorm NXT with the NXC (Not eXactly C) language.
"LEGO Mindstorms NXT Power Programming: Robotics in C" by John C. Hansen
With a small amount of tinkering you can probably get NXC working with whatever your favourite IDE already is.
我们使用 NQC 对 Lego Mindstorms 进行编程。 我们要建造一个四轮机器人来在比赛中收集人造垃圾(珠子和纸片)。 在测试了不同的编程和 IDE 之后,我得出的结论是 NQC 适合我。(因为我知道 C 和 NQC 有很多很好的教程材料)。
重点是您可以使用 NQC 轻松修改代码。 例如,在比赛中,我们应该更改代码以应对机器人环境中的新挑战(他们用地毯更改了MDF!)
顺便说一句,我们获得了很好的成绩(第三名):)
We used NQC for programming Lego Mindstorms. We was to build a four-wheel robot to gather artificial rubbish(pieces of bead and paper) in a competition. After testing different programming and IDEs I concluded NQC was right to me.(because I knew C and NQC had many good tutorial materials).
And the point is that you can modify your code easily with NQC. For example, at the competition, we should change our code in oder to cope with new challenges in our robot's environmetn( they changed MDF with carpet!)
by the way, We obtained a good result (third place) :)
如果您对使用 MATLAB 感兴趣,MATLAB 实际上有一个 LEGO MINDSTORMS NXT 工具包 。 您可以通过蓝牙连接发送命令或创建下载到机器人的嵌入式控件。 我已经在一些 MathWorks 博客,并且在 MathWorks File Exchange 上发布了一些演示(这里有一个)。
MATLAB actually has a LEGO MINDSTORMS NXT Toolkit, if you're interested at all in using MATLAB. You can send commands via Bluetooth connection or create embedded controls that are downloaded to the robot. I've seen it discussed on some of the MathWorks blogs, and there are some demos posted on the MathWorks File Exchange (here's one).
您可以使用 nxtOSEK 作为 NXT 上的操作系统。 然后您可以使用纯 C 语言编写代码。
You can use nxtOSEK as operating system on the NXT. Then you can use plain C to write your code.
过去,NQC 是最佳选择。 对 C 风格编程的一个很好的介绍,陷阱较少。
Back in the day, NQC was the way to go; A good intro to C style programming, with fewer pitfalls.