darwin_walk_backward
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
darwin_walk_backward [2017/11/21 10:18] – yuhanghe | darwin_walk_backward [2017/11/21 11:37] (current) – [Programming] yuhanghe | ||
---|---|---|---|
Line 10: | Line 10: | ||
{{ :: | {{ :: | ||
\\ | \\ | ||
- | This tutorial will demonstrate how to program Darwin OP 2 to walk backward. The walking algorithm for backward motion is included in Darwin OP 2's source code by Robotis. However, there is no on-line, or barely any, documentation of this process. This tutorial take approximately 1 hour to complete. | + | This tutorial will demonstrate how to program Darwin OP 2 to walk backward. The walking algorithm for backward motion is included in Darwin OP 2's source code by Robotis. However, there is no on-line, or barely any, documentation of this process. This tutorial |
\\ | \\ | ||
===== Motivation and Audience ===== | ===== Motivation and Audience ===== | ||
- | This tutorial' | + | This tutorial' |
* Familiar with handling Darwin OP 2 | * Familiar with handling Darwin OP 2 | ||
Line 29: | Line 29: | ||
===== Programming ===== | ===== Programming ===== | ||
- | Following a target | + | Darwin OP 2's Walking class calculates motor positions for walking algorithm internally based on parameters. Most of these parameters |
- | \\ | + | \\ \\ |
- | This tutorial will only demonstrate parts of program that needs modification to include program | + | There are 3 parameter in walking_tuner |
+ | \\ \\ | ||
+ | Below is a sample | ||
<code cpp | main.cpp> | <code cpp | main.cpp> | ||
Line 128: | Line 131: | ||
Walking:: | Walking:: | ||
// | // | ||
- | //each unit corresponds to approximately 1 cm. Set X_MOVE_AMPLITUDE to negative numbers to program | + | //each unit corresponds to approximately 1 mm. Set X_MOVE_AMPLITUDE to negative numbers to program |
//Darwin OP 2 to walk backwards. The Walking class calculates corresponding motor positions | //Darwin OP 2 to walk backwards. The Walking class calculates corresponding motor positions | ||
// | // | ||
Line 134: | Line 137: | ||
Walking:: | Walking:: | ||
// | // | ||
- | //unit correspond approximately to 1 degree. | + | //unit correspond approximately to 1 degree. Positive degrees for Darwin OP 2 to turn |
+ | // | ||
| | ||
Walking:: | Walking:: | ||
Line 188: | Line 192: | ||
===== Demonstration ===== | ===== Demonstration ===== | ||
- | In this demonstration, | + | In this demonstration, |
- | {{ youtube>HaZladeEsJo?large }} | + | {{ youtube>GQ8AyZpQ9NU?large }} |
===== Final Words ===== | ===== Final Words ===== | ||
- | This tutorial' | + | This tutorial' |
\\ | \\ | ||
\\ | \\ |
darwin_walk_backward.1511288307.txt.gz · Last modified: 2017/11/21 10:18 by yuhanghe