Build a Bumper Service
The bumper service is different from the drive, LED, and speaker services because it implements the generic contact sensors contract. The benefit for using the generic contact sensors service is that we need only one class file to represent the bumper service. The amount of code used to represent the bumper service is reduced, and we can use the state variables and DSS operations that are part of the generic contact sensors service. To add the class file, right-click the ARobotServices project, click Add, and then click Class. You can name the new class file ARobotBumper.
Add a Reference
The generic contact sensors service is part of the Robotics.Common assembly. This means you need to add a reference to the Robotics.Common.Proxy ...
Get Programming Microsoft® Robotics Studio now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.