Aforge.net framework 新的NXT程式平台?

實驗室學長找到的. http://www.aforgenet.com/

AForge.NET is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence – image processing, neural networks, genetic algorithms, machine learning, robotics, etc.

翻譯一下: AForge.NET 是一個針對以下領域開發者的C#framework : 電腦視覺, 人工智慧, 影像處理, 神經網路, 基因演算法, 機器學習與機器人等等。

放一段C#的code來看看:

==================================

// create an instance of NXT brick
NXTBrick nxt = new NXTBrick( );
// connect to the device
if ( nxt.Connect( "COM8" ) )
{
// run motor A
NXTBrick.MotorState motorState = new NXTBrick.MotorState( );
motorState.Power      = 70;
motorState.TurnRatio  = 50;
motorState.Mode       = NXTBrick.MotorMode.On;
motorState.Regulation = NXTBrick.MotorRegulationMode.Idle;
motorState.RunState   = NXTBrick.MotorRunState.Running;
motorState.TachoLimit = 1000;
nxt.SetMotorState( NXTBrick.Motor.A, motorState );
// get input value from the first sensor
NXTBrick.SensorValues sensorValues;
if ( nxt.GetSensorValue( NXTBrick.Sensor.First, out sensorValues ) )
{
// ...
}
// ...
}
About CAVEDU 阿吉 - 雜工 (2521 Articles)

CAVEDU 教育團隊 打雜

Contact: Website

Leave a comment

Your email address will not be published.


*