DrRobot Jaguar Betriebsanweisung Seite 21

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 24
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 20
Copyright © 2014, Dr Robot Inc. All Rights Reserved.
www.DrRobot.com
V20.12.14
- 21 -
V. Further Development & Programming
The Jaguar Control program
The Jaguar Control program is written with Visual Studio 2008 express (in C#) under .Net 3.5 framework. You
could download the development tools (Visual Studio 2008 express under .Net 3.5 framework) free from
Microsoft. Please refer to the “Dr Robot Application Development Notes on C# Programming for Robot Control”
for further information.
The control program uses the supporting components and libraries that should have been installed when you
install the control program from the installation CD:
1.
DRROBOTSentinelCONTROL.OCX: Please refer to “WiRobot SDK API Reference Manual.pdf” for
detail.
2.
WiRobotGateway.exe
3. AXIS Media Control Library Set These are the camera control component for the AXIS Mini Camera
(P/N: AXCAM) used for Jaguar robot. Please refer to “AXIS Media Control SDK Help” for detail.
Motion Control/Sensing System
Jaguar-4x4-Wheel comes with a special version of PMS5005 as its motion control and sensing board. It follows
the Dr Robot WiRobotSDK protocol. User could control and access Jaguar by Dr Robot ActiveX control
(DrRobotSentinelActivexControl.ocx) and WiRobot gateway program.
Based on the protocol, you could develop your own program for any operation system. You could request
protocol sample code from Dr Robot using C++/Java. You should also contact Dr Robot with any questions
regarding SDK API and protocol.
The communication port is connected at Ethernet module-I port 1.
Gateway program will connect to this board at 192.168.0.60, port 10001.
Here is C# sample code to control Jaguar-4x4-Wheel System with ActiveX control,
myJaguar is DrRobotSentinelActiveXControl.
Wheel Motor control:
private void myJaguar_MotorSensorEvent(object sender, EventArgs e)
{
leftRearWheelMotor.encoderDir = myJaguar.GetEncoderDir1();
leftRearWheelMotor.encoderPos = myJaguar.GetEncoderPulse1();
leftRearWheelMotor.encodeSpeed = myJaguar.GetEncoderSpeed1();
rightRearWheelMotor.encoderDir = myJaguar.GetEncoderDir2();
rightRearWheelMotor.encoderPos = myJaguar.GetEncoderPulse2();
rightRearWheelMotor.encodeSpeed = myJaguar.GetEncoderSpeed2();
WheelMotor.output leftFrontWheelMotor.outputPWM =
myJaguar.GetMotorPWMValue4();
rightFrontWheelMotor.outputPWM = myJaguar.GetMotorPWMvalue5();
leftRearWheelMotor.outputPWM = myJaguar.GetMotorPWMValue1();
rightRearWheelMotor.outputPWM = myJaguar.GetMotorPWMValue2();
}
Seitenansicht 20
1 2 ... 16 17 18 19 20 21 22 23 24

Kommentare zu diesen Handbüchern

Keine Kommentare