可以使用Linux进行实时编程吗? [英] Is it possible to use of Linux for real-time programming?

查看:123
本文介绍了可以使用Linux进行实时编程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Linux中使用Open-CV进行图像处理,我想制造一个机器人.我以为我不是使用微控制器来学习如何对其进行编程以及如何为其构建电路板,而是使用一台装有Linux OS的计算机来满足我的所有需求.我的机器人是类人动物,它有许多电机,传感器和一个摄像头. Norm正在为电动机和传感器使用单独的IMU,但是我想知道是否可以用单板(带有Linux OS的微型PC)完成所有任务?

I''m working on Image-processing with Open-CV in Linux, and I want to make a robot. I thought instead of using a microcontroller and learning how to program it and how to build a board for it, I use a single computer with Linux OS to handle all of my needs. My robot is a Humanoid and It has many motors,sensors, and a camera. Norm is using a separate IMU for motors and sensors, But I wanted to know is it possible to doing all of task with single board(a mini-PC with Linux OS)?

推荐答案

是的,有可能.考虑到现代智能手机可以进行大量的实时处理,它们只是一个例子.

在我看来,问题不是,是否可以在Linux下进行实时工作,而是实现某些事情有多困难.根据某些任务的时间紧迫性,可能有必要诉诸于将某些部分实现为设备驱动程序或在内核级别实施,或者将一个处理器内核专用于特定任务.

这就是为什么某些开发人员有时会使用专用的卫星处理器来执行时间特别紧迫的任务的原因.这样做有时要比在一个操作系统上运行全部操作容易.

抱歉,回答比较笼统,但您的问题很笼统.
Yes, it is possible. Consider that modern smart phones do a good deal of real time processing and they are just one example.

In my opinion the question is not, whether it''s possible to do real time work under Linux, but how difficult it will be to implement certain things. Depending on how time critical some tasks may be, it might be necessary to resort to implementing certain parts as a device diver or on the kernel level or dedicate one processor core to a certain task.

That is the reason why some developers sometimes use dedicated satellite processor for particularly time critical tasks. It is sometimes easier to do it that way than to run it all under one operating system.

Sorry for the rather general answer, but your question was rather general.


这篇关于可以使用Linux进行实时编程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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