110 likes | 127 Views
Learn how to use the GoFor command in your first robot programming course. Drive your robot for a specific duration. Follow the Step-by-Step guide by Young Joon Kim to master this beginner's course. Visit http://www.helloapps.com for more details.
E N D
My first robot programming- Simple“GoFor” MSRDS First Beginner Course – STEP4 Young Joon Kim http://www.helloapps.com
“GoTo” Drive Commands • GoFor • Drive given duration time (milliseconds) • Usages • robotname.GoFor(left_power, right_power, duration) • Range of each motor power values • -1.0 (Max backwards) ~ 1.0 (Max forwards) • 0: Stop the motor • Unit of duration time • milliseconds
Preparing basic environment • Add a “Data” activity and “SPL Engine” • Type “Script/BasicEnv0.txt” in the “Data” activity
“GoFor” command • Add below diagrams • Drive a robot during 2 seconds with 0.5 motor power
“GoFor” command • Add diagrams to make a robot stop
“GoFor” command • Connect the end point of “SPL Drive” and “Data” activity Connect
“GoFor” command • Select “ExecuteScript – Success” as follows
“GoFor” command • Run VPL diagram by pressing “F5” key or clicking “Start” icon
“GoFor” command • Execution result Move during 2 seconds