Working with Version 1

In this section, we will walk through the steps for creating a simple service named Wander, which is used to move the LEGO NXT around a room. Even though we will use generic services to operate the motors and contact sensors, we will include a reference to the LEGO NXT service. By including the LEGO service, we will be able to use the buttons on the LEGO brick to start moving the robot forward and also to stop the robot, if necessary. The downside to doing this is it will make the service specific to the LEGO NXT and not applicable to other types of robots. This is the tradeoff to consider when designing services that use other non-generic services.

LEGO brick

This represents the brains for the robot, and it is where the programmable ...

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.