O'Reilly logo

Programming Microsoft® Robotics Studio by Sara Morgan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required