⬆️ ⬇️

First bolt

Microsoft Robotics Studio is a medium for modeling and programming robots. You can program in languages ​​such as C #, Visual Basic and VPL (Visual Programming Language). The program is not new, but there is very little information on the Internet; you can find only a description of the program itself and a couple of standard examples.



Download Microsoft Robotics Studio



In the cycle of my articles I want to describe the laboratory work http://msdn.microsoft.com/en-us/library/dd772008.aspx . At leisure, they translated, tested and want to describe. By the way, they are immediately when you install the program: Samples \ VplHandsOnLabs \



The first laboratory work tells you how to control the robot using a manipulator. We need two services: the manipulator is the Desktop Joystick and the sensor that is responsible for receiving data for the wheels, which is called Generic Differential Drive (GDD).

')

We drag them onto the diagram and link:



image



Very important properties of the connection from the Desktop Joystick, we put UpdateAxes, i.e. we transfer each time new changes on the side of the manipulator. And for GDD we install SetDrivePower, which sets the power of the wheel according to a given formula:



image



image



In Robotics there are so many types of robots that can also easily work on the physical level, which is connected via Bluetooth or infrared. Your written diagram can be run on other robots by selecting the manifest you need (settings for a specific robot in the .xml format). For our diagram, we choose iRobot Create, which by the way will be used in some other labs.



Right (standard) on the Properties panel, we select Use manifest , click Import and select our robot, which we have agreed to use:



image



Save and press F5 and get a standard environment and our robot, which is controlled by Desktop Joystick.



image



This work is very simple, next time I will describe how to program the sensors on the robot.

Source: https://habr.com/ru/post/66638/



All Articles