Professional
Microsoft Robotics Developer Studio

Chapter 12 - Visual Programming Examples
Summary
Several more sophisticated examples are included in this chapter to
show off the features of VPL and how to take advantage of existing
services.
The examples use the simulation environment instead of actual robot hardware
so that they are accessible to everyone. In most cases, they can be converted
to run with actual hardware just by changing the manifest that is used. For instance,
there is a second example of the Arm Mover that works with a real Lynx L6 arm.
- The relationship between VPL activities and DSS services;
- How to compile a diagram into a C# service implementation; and
- How to associate an activity with a specific service.
Simple examples are provided that show how to control actuators and
also how to read data from sensors.
Contents
This chapter contains five VPL examples.
The links below provide more information.
In addition to these examples, there are some other projects that are
used to support them:
- LineMesh - Used to convert a bitmap to a mesh for Line Following
- SimPhotoCell - A simulated light sensor using a downward-facing webcam
- BallCourt - Creates a simulated environment with a ball and CoroBot robot
The Cyclone simulated sumo robot from Chapter 9 can be used in the
VPLSumo.
Important Notes
- All the cautions on hardware in the Simulation chapters, especially graphics cards,
apply to these examples as well.
- You should have at least 1GB of memory in your PC to run these applications.
- An Xbox Game Controller is required for the VPLExplorer and ArmMover. (A
standard Joystick will not work.) You should use a wired USB Xbox controller,
not a wireless controller. Several people have
reported problems using wireless Xbox controllers, whereas nobody has had trouble
with the wired version.
- You might have to recompile some of the supporting projects first.
- VPL Sumo requires you to first download and install the Sumo Simulation available from the
MRDS Downloads page.
Legal Stuff
This code is available free of charge for non-commercial use.
Please see the Licence Agreement.