darwin_walk_toward_target
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
darwin_walk_toward_target [2017/11/19 18:31] – [Programming] yuhanghe | darwin_walk_toward_target [2017/11/20 16:12] (current) – [Motivation and Audience] yuhanghe | ||
---|---|---|---|
Line 22: | Line 22: | ||
The rest of this tutorial is presented as follows: | The rest of this tutorial is presented as follows: | ||
- | * [[new_mode_demonstration# | + | * [[darwin_walk_toward_target# |
- | * [[new_mode_demonstration# | + | * [[darwin_walk_toward_target# |
- | * [[new_mode_demonstration# | + | * [[darwin_walk_toward_target# |
Line 214: | Line 214: | ||
Head:: | Head:: | ||
Walking:: | Walking:: | ||
+ | // | ||
+ | | ||
if(Walking:: | if(Walking:: | ||
- | Walking:: | + | Walking:: |
+ | //Set forward and back step length to 30cm | ||
+ | | ||
Walking:: | Walking:: | ||
+ | //Set yaw step length to 0 | ||
+ | |||
Walking:: | Walking:: | ||
} | } | ||
Line 224: | Line 229: | ||
{ | { | ||
marker_follower.Process(marker_tracker.ball_position); | marker_follower.Process(marker_tracker.ball_position); | ||
+ | //use BallFollower object to start following marker | ||
+ | | ||
if(greenCount >= 10500 || blueCount >= 10500) | if(greenCount >= 10500 || blueCount >= 10500) | ||
+ | //pixel count can be used to approximate distance, but in this case, | ||
+ | //this stop condition is sufficient | ||
{ | { | ||
Walking:: | Walking:: | ||
Line 247: | Line 256: | ||
===== Final Words ===== | ===== Final Words ===== | ||
- | This tutorial' | + | This tutorial' |
\\ | \\ | ||
\\ | \\ |
darwin_walk_toward_target.1511145086.txt.gz · Last modified: by yuhanghe