用C编程机器人 [英] Programming a Robot with C

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

问题描述



我是英国布里斯托大学(University of Bristol(UK))的研究生计算机科学转换课程(拥有另一门学科的学位,现在正在学习计算机)

我们的Mini项目在12月底之前将开发一个原型机器人,以鼓励13-14岁的孩子学习计算.机器人本身应在C
中进行编程
我刚开始使用C,但它非常具有挑战性,目前这个项目似乎让我望而却步,尤其是因为我对C没有扎实的背景

任何人都可以向我建议如何开始看资源和材料,可以帮助我了解机器人所需编程水平的链接,或者它需要什么

我已经在CodeProject工作了一年多,并阅读了有关软件工程和产品评论的有趣新闻通讯和文章.我相信针对我的问题来到这个网站是有针对性的,因为我相信这里有正确的思维方式可以提供帮助

期待任何回应
非常重视
Victoria

Hi,

I am a Post-grad Computer Science Conversion Course (had a degree in another discipline and now studying computing) student at the University of Bristol (UK)

Our Mini project before the end of December is to develop a prototype Robot that encourages 13 -14 year olds to learn about computing. The Robot itself should be programmed in C

I have just started out with C, and its quite challenging, this project at the moment seems way over my head especially with the fact that I have no solid background in C

Can anyone advise me on what to start looking at like resources and materials, links that can help me have an idea of the level of programming that is required for the robot, or what it entails

I have been with the CodeProject for over a year now, and read interesting newsletters and articles relevant to Software Engineering, and Product reviews. I believe that coming to this site with my question is targeted as I believe that there is the right kind of mindset here to help

Looking forward to any and all response
Much regard
Victoria

推荐答案

那里有一本Wrox书籍:Microsoft Robotics Developer Studio,封底说提供了一种在Windows环境中编程机器人的令人兴奋的新方法",也许值得一看.但是它确实说代码示例是C#而不是C.

在规模的另一端(介绍性),最小"机器人可能是由一些步进电机构建并由PIC处理器控制的,可以使用C语言编写代码.关于PIC编程的几本书可能是个好选择.

我同意这份简介并不能完全确定您要针对实际机器人或与此相关的其他事情要做的事情.
There''s a Wrox book: Microsoft Robotics Developer Studio, that the back cover says "offers a exciting new way to program robots in the windows environment" that might be woth a look. However it does say the code examples are in C# rather than C.

At the other (introductory) end of the scale a ''minimal'' robot might be something built using a few stepper motors and controlled by a PIC processor for which code can be written in C. There are a few books on PIC programming that are probably a good bet.

I agree that the brief doesn''t pin down exactly what it is you have to do concerning the actual robot or much else for that matter.


...鼓励13到14岁的年轻人学习计算的原型机器人.

对于任何人都可以提供很多帮助的人来说,这都是一个非常模糊的描述.首先要做的是在开始尝试编写任何代码之前,以现实的方式定义您的问题.

例如:
机器人的功能是什么?
这是物理机器人,如果是,则是机械,电气……吗?
您希望向机器人提供什么信息?
您希望得到什么信息?
...

如您所见,在转到第一行代码之前,有很多问题需要考虑.

如果您对上述内容有一些答案,可以使用Google来帮助您找到文章,教程等.
... to develop a prototype Robot that encourages 13 -14 year olds to learn about computing.

That''s a pretty vague description for anyone to be able to offer much to help you. The first thing to do is to define your problem in real world terms before you start trying to write any code.

For example:
What is the function of the robot?
Is this a physical robot, and if so, mechanical, electrical, ...?
What information do you expect to feed into the robot?
What information do you expect to come out?
...

As you can see there are lots of issues to consider before you turn your first line of code.

If you have some answers to the above you can use Google to help you find articles, tutorials etc.


也可以看看Lego机器人的东西
http://en.wikipedia.org/wiki/Lego_Mindstorms [
Also have a look at the Lego robot stuff
http://en.wikipedia.org/wiki/Lego_Mindstorms[^] - that''s probably one amongst many solution to the brief of your assignment.


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

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