Manipulation of Surveyor SRV-1 Blackfin robot/camera.

Namespace:  AForge.Robotics.Surveyor
Assembly:  AForge.Robotics.Surveyor (in AForge.Robotics.Surveyor.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public class SRV1

Remarks

The class allows to manipulate with Surveyor SRV-1 Blackfin Robot - getting video from its camera, manipulating motors and servos, reading ultrasonic modules' values, sending direct commands, etc.

Sample usage:

CopyC#
SRV1 srv = new SRV1( );
// connect to SRV-1 robot
srv.Connect( "169.254.0.10", 10001 );
// stop motors
srv.StopMotors( );
// set video resolution and quality
srv.SetQuality( 7 );
srv.SetResolution( SRV1.VideoResolution.Small );
// get version string
string version = srv.GetVersion( );

// get robot's camera
SRV1Camera camera = srv.GetCamera( );

// set NewFrame event handler
camera.NewFrame += new NewFrameEventHandler( video_NewFrame );
// start the video source
camera.Start( );
// ...

private void video_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
    // get new frame
    Bitmap bitmap = eventArgs.Frame;
    // process the frame
}

Inheritance Hierarchy

System..::.Object
  AForge.Robotics.Surveyor..::.SRV1

See Also