关于如何编写机器人的线索 [英] a clue on how to write a robot

查看:98
本文介绍了关于如何编写机器人的线索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


任何人都能给我一个关于如何编写vb.Net机器人的线索,该机器人在一个封闭的圆形笔内以随机的方式移动。如果它移动太靠近笔的边缘,它会执行180度数转向并继续其随机运动。机器人由可充电电池供电。当电池放电到一定限度以下时,机器人会检测到它饥饿。在检测到它饥饿时,机器人的行为变为寻求食物。食物是通过将自身插入电源来为电池充电。电源由位于封闭笔周边壁上某处的充电站提供。

Hi any one give me a clue on how to write vb.Net robot that moves in a random manner within in a closed circular pen .If it moves too close to the edge of the pen it performs a 180 degree turn and continues its random movements. The robot is powered by rechargeable batteries. When the batteries are discharged below a certain limit the robot detects that it is ‘hungry’. On detecting that it is ‘hungry’ the robot’s behaviour changes to one of seeking food. Food is by way of charging its batteries by plugging itself into a power source. A power source is provided by a charging station located somewhere on the peripheral wall of the enclosing pen.

推荐答案

除非您基于 BeagleBoard [ ^ ]或 GumStix [ ^ ],或者罕见的其他基于x86的嵌入式主板,你可能不会在VB.NET中运行代码。



你将拥有学习C,C ++,汇编程序,甚至是C#,但是没有任何嵌入式程序可以运行VB。



这比快速问题要多得多可以回答,但你需要购买机器人套件并按照教程进行操作。首先让它直线前进,然后转弯,然后让它跟着一条线,继续前进,直到你得到你想要的东西。



准备好花钱这是一个好年头,取决于你的技能,这不是世界上学习新语言和嵌入式电子产品最简单的事情。
Unless you are creating a robot based on a BeagleBoard[^] or GumStix[^], or the rare other x86 based embedded board, you probably won't be running the code in VB.NET.

You will have to learn C, C++, assembler, or even C#, but there isn't anything embedded that runs VB.

This is a lot more than what a "quick question" can answer, but you need to buy a robot kit and follow the tutorials. First make it go in a straight line, then make it turn, then make it follow a line, keep progressing until you get what you want.

Be prepared to spend a good year on this depending on your skill, its not the easiest thing in the world to learn a new language and embedded electronics.


这篇关于关于如何编写机器人的线索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆