Difference between revisions of "WallFollow Example"
From RobotinoWiki
Indorewala (talk | contribs) (Created page with "=WallFollow Example= In this example, Robotino follows a wall based on the input from its distance sensors. The example is located in the ''RobotinoMRDS/Examples/WallFollow''...") |
Indorewala (talk | contribs) (→Running the example) |
||
Line 4: | Line 4: | ||
=Running the example= | =Running the example= | ||
+ | ==Prerequisites== | ||
+ | You must have the following installed on your system to run this example: | ||
+ | * Microsoft Visual Studio 2010 (or Microsoft Visual C# 2010 Express) | ||
+ | |||
+ | ==Procedure== | ||
+ | |||
+ | ===Step 1: Setting the correct IP address for Robotino=== | ||
+ | # Navigate to ''RobotinoMRDS\Services\Robotino'' and open the project ''Robotino.csproj'' | ||
+ | # Open ''Robotino.cs'' and go to line number 82 (approximately) and replace the following line with the IP address of your Robotino <pre>_robotino.Connect("192.168.5.5");</pre> | ||
+ | # Build the project | ||
+ | |||
+ | ===Step 2: Building the example project=== | ||
+ | # Navigate it to ''RobotinoMRDS\Examples\WallFollow'' and open the ''WallFollow.csproj'' | ||
+ | # Build the ''WallFollow'' project | ||
+ | # Right click the ''WallFollow'' project in the Solution Explorer and set it as a startup project | ||
+ | # Hit F5 | ||
=Video= | =Video= | ||
A video of this example in action can be viewed below. | A video of this example in action can be viewed below. | ||
{{#ev:youtube|KVD_eiG4x8Q}} | {{#ev:youtube|KVD_eiG4x8Q}} |
Revision as of 17:55, 14 March 2012
Contents
WallFollow Example
In this example, Robotino follows a wall based on the input from its distance sensors. The example is located in the RobotinoMRDS/Examples/WallFollow folder.
Running the example
Prerequisites
You must have the following installed on your system to run this example:
- Microsoft Visual Studio 2010 (or Microsoft Visual C# 2010 Express)
Procedure
Step 1: Setting the correct IP address for Robotino
- Navigate to RobotinoMRDS\Services\Robotino and open the project Robotino.csproj
- Open Robotino.cs and go to line number 82 (approximately) and replace the following line with the IP address of your Robotino
_robotino.Connect("192.168.5.5");
- Build the project
Step 2: Building the example project
- Navigate it to RobotinoMRDS\Examples\WallFollow and open the WallFollow.csproj
- Build the WallFollow project
- Right click the WallFollow project in the Solution Explorer and set it as a startup project
- Hit F5
Video
A video of this example in action can be viewed below. {{#ev:youtube|KVD_eiG4x8Q}}