![]() |
![]() |
Professional
Microsoft Robotics Developer Studio
The TeleOperation service has two windows - one for controlling a Differential Drive, and the other for viewing a Webcam. When you save the option settings, it remembers where you last placed the windows on the screen so that they will always pop up in the same position. The connection parameters are remembered as well. The interface looks like the following (click on the image for a larger version):
Enter the host name and the port number to connect to. The first Differential Drive service and Webcam service found on the specified host machine will be used. (You cannot control multiple robots with this service.)
You can use a Joystick or Gamepad, the arrow keys on the keyboard, and the on-screen "trackball" to control the robot once you have connected. To use the keyboard, hold down an arrow key for the robot to move. When you release the key, the robot will stop. The game controller and the arrow keys still work if you have the Webcam window selected instead of the control panel.
There are Motion Control buttons in the bottom-right of the TeleOperation window that can be used to move the robot. When the Fixed Moves check box is not ticked, these buttons operate the same as Robotics Tutorial 4 (Drive by Wire), i.e. they control the motors directly.
If the Fixed Moves checkbox is selected, then these arrow buttons use the TranslateDistance and RotateDegrees functions of the Differential Drive. For these to work, the robot you are driving must implement these operations. You can adjust the distance and the amount of rotation by changing the settings.
NOTE: To save the settings, you must use a web browser to
view the state of the service. Browse to the following URL when
the service is running:
http://localhost:50000/teleoperation
When you save the settings, a file called TeleOperation.Config.xml will be written into the ProMRDS/Config directory. Most of the settings are the same as for the Dashboard service.
This code is available free of charge for non-commercial use. Please see the Licence Agreement.
This service should not be used for commercial purposes because its operation is not guaranteed.