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 ) )
{
// ...
}
// ...
}

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *