test_mediawiki
Differences
This shows you the differences between two versions of the page.
test_mediawiki [2016/10/24 23:25] – created dwallace | test_mediawiki [2016/10/24 23:45] (current) – dwallace | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | **This tutorial is part of the [[Robotino|Operation]] series.** | + | ====== |
+ | **This tutorial is part of the [[robotino_operation|Robotino Operation]] series** | ||
- | The completed project can be downloaded here [[: | ||
- | This is an extension of the [[Robotino|Vision Pickup]] and [[Robotino|Potential Field Navigator]] tutorials | + | The completed project can be downloaded here {{dylanw: |
+ | |||
+ | This is an extension of the [[robotino_vision_pickup|Robotino | ||
Line 11: | Line 13: | ||
The completed project in action. | The completed project in action. | ||
- | {{#ev:youtube|kOHOl9oaBE4}} | + | {{youtube>kOHOl9oaBE4? |
- | {{#ev:youtube|sLznp5lZsg8}} | + | {{youtube>sLznp5lZsg8? |
===== Procedure | ===== Procedure | ||
- | The only functional update to this tutorial from the [[Robotino|Potential Field Navigator]] tutorial is in the PFNavNode.cpp. | + | The only functional update to this tutorial from the [[robotino_pfnav|Robotino |
- | + | ||
- | #include " | + | <code c++ PFgrab.cpp> |
- | #include " | + | #include " |
+ | #include " | ||
| | ||
| | ||
- | | + | int main(int argc, char **argv) |
- | { | + | { |
- | | + | |
| | ||
- | | + | |
- | approach_grab mygrab; | + | approach_grab mygrab; |
| | ||
- | | + | |
| | ||
- | | + | |
- | navigator.tileGridObstacle(4, | + | navigator.tileGridObstacle(4, |
- | navigator.tileGridObstacle(6, | + | navigator.tileGridObstacle(6, |
- | navigator.tileGridObstacle(8, | + | navigator.tileGridObstacle(8, |
- | navigator.navField.printPotentialField(); | + | navigator.navField.printPotentialField(); |
| | ||
| | ||
- | | + | |
- | navigator.spin(); | + | navigator.spin(); |
- | mygrab.spinOnce(); | + | mygrab.spinOnce(); |
- | navigator.tileGridGoal(0, | + | navigator.tileGridGoal(0, |
- | navigator.spin(); | + | navigator.spin(); |
| | ||
| | ||
- | | + | |
- | } | + | } |
+ | </ | ||
As you can see the way to add items to the Navigator' | As you can see the way to add items to the Navigator' | ||
- | Other than adding the unit conversions in the PFNav class and adding the ability to spinOnce in approach_grab the accompanying classes have remained the same. here are the prototypes for the added member functions. | + | Other than adding the unit conversions in the PFNav class and adding the ability to spinOnce in approach_grab the accompanying classes have remained the same. Here are the prototypes for the added member functions. |
- | PFNav | + | **PFNav** |
void tileGridObstacle(float x,float y, float w, float d); | void tileGridObstacle(float x,float y, float w, float d); | ||
void tileGridGoal(float x,float y, float w); | void tileGridGoal(float x,float y, float w); | ||
- | approach_grab | + | **approach_grab** |
void spinOnce(); | void spinOnce(); | ||
test_mediawiki.1477376754.txt.gz · Last modified: by dwallace