drexel_darwin_source_codes_explanation
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
drexel_darwin_source_codes_explanation [2016/11/01 15:05] – created dwallace | drexel_darwin_source_codes_explanation [2016/11/06 04:06] – [Motivation] dwallace | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Explanation of Source Codes ====== | ====== Explanation of Source Codes ====== | ||
- | ==Motivation== | + | ==== Motivation ==== |
How a robot operates is pretty much dependent on the algorithm that it reads. | How a robot operates is pretty much dependent on the algorithm that it reads. | ||
Line 8: | Line 9: | ||
This section explains about what each part of the source code means and give examples of a short program. | This section explains about what each part of the source code means and give examples of a short program. | ||
- | Code used will be C++. | + | Code used will be Cpp. |
- | As mentioned previously, since there is no GUI available in DASL's very own Darwin, you cannot use '' | + | As mentioned previously, since there is no GUI available in DASL's very own Darwin, you cannot use **gedit** to modify and play around with the codes in Darwin. |
Instead, import the codes into your own computer to edit and export them back into Darwin to execute, via the use of the Ubuntu Terminal. | Instead, import the codes into your own computer to edit and export them back into Darwin to execute, via the use of the Ubuntu Terminal. | ||
Line 16: | Line 17: | ||
Search the Internet for the relevant codes to achieve this. | Search the Internet for the relevant codes to achieve this. | ||
- | These keywords should help in your search: | + | These keywords should help in your search: |
- | Another way you can modify the source codes would be to use the command | + | Another way you can modify the source codes would be to use the command |
- | ==Walking== | + | ==== Walking ==== |
- | With reference to the ball following tutorial, I have made a short summary of what is the role of each part of the ball_following tutorial to contributing the making the robot move here[https:// | + | |
- | The original codes are downloaded from here[http://sourceforge.net/projects/ | + | With reference to the ball following tutorial, I have made a short summary of what is the role of each part of the ball_following tutorial to contributing the making the robot move [[https://github.com/mr1789/darwindasl|here]] under the name **" |
- | Explanations of each part are based on this website[http://support.robotis.com/en/]. | + | The original codes are downloaded from [[http://sourceforge.net/ |
- | I will be referring to ''' | + | Explanations of each part are based on [[http:// |
- | ''' | + | I will be referring to **DARwIn-OP_ROBOTIS_v1.5.0** source codes. |
- | In the "workspace", with reference to this code[http://code.google.com/ | + | **NOTE:** It seems that the source code titled |
- | The video shows how the robot move faster gradually each time i press the '' | + | In the " |
- | <syntaxhighlight lang=" | + | |
+ | The video shows how the robot move faster gradually each time i press the **return** key. | ||
+ | |||
+ | <code c++> | ||
Walking:: | Walking:: | ||
Walking:: | Walking:: | ||
Line 49: | Line 52: | ||
return 0; | return 0; | ||
} | } | ||
- | </ | + | |
- | < | + | |
void showvalue() | void showvalue() | ||
{ | { | ||
printf(" | printf(" | ||
} | } | ||
- | </ | + | |
- | < | + | |
void inc() | void inc() | ||
{ | { | ||
Walking:: | Walking:: | ||
} | } | ||
- | </syntaxhighlight> | + | </code> |
{{# | {{# | ||
- | As mentioned | + | As mentioned |
- | <syntaxhighlight lang=" | + | |
+ | <code c++> | ||
void inc() | void inc() | ||
{ | { | ||
Walking:: | Walking:: | ||
} | } | ||
- | </syntaxhighlight> | + | </code> |
{{# | {{# | ||
- | My codes can be found here[https:// | + | My codes can be found [[https:// |
+ | |||
+ | ===== Vision ===== | ||
- | ==Vision== | ||
Ok plan is to export vision captured from Darwin' | Ok plan is to export vision captured from Darwin' | ||
- | Go here[http:// | + | Go [[http:// |
- | ''' | + | **NOTE:** The previous version in DASL's very own Darwin is Maverick-10.10 which is given the End-Of-Life status. The address of the files that one needs to access for upgrade and installation of libraries etc. has now been changed. Some changes need to be done in order to successfully install OpenCV the way it is stated in the link above. Refer [http:// |
However, based on research and advices received, it is not desirable to use image processing on Darwin it self as it will be slow. | However, based on research and advices received, it is not desirable to use image processing on Darwin it self as it will be slow. | ||
Line 86: | Line 91: | ||
The storage space is also little. | The storage space is also little. | ||
- | ''' | + | **(TO BE CONTINUED)** |
drexel_darwin_source_codes_explanation.txt · Last modified: 2016/11/06 19:11 by dwallace