My first robot programming - Simple “Turn”
-
Upload
shaine-ashley -
Category
Documents
-
view
23 -
download
3
description
Transcript of My first robot programming - Simple “Turn”
My first robot programming
- Simple “Turn”
Young Joon Kimhttp://www.helloapps.com
MSRDS First Beginner Course – STEP4
2
“Turn” Drive Commands
• Turn
– Drive a robot with rotation angle and motor power
• Usages
– robotname.Turn(degrees, power)
• Range of motor power values
– -1.0 (Max backwards) ~ 1.0 (Max forwards)
– 0: Stop the motor
• Range of degrees
– -180 ~ 180
4
Preparing basic environment
• Add a “Data” activity and “SPL Engine”
• Type “Script/BasicEnv0.txt” in the “Data” activity
7
“Turn” command
• Type “myrobot.Turn(90, 0.2)” in the new “Data” activity
– Rotation degrees : 90 degrees
– Motor power : 0.2
9
• Connect the output point of “Data” activity to the input
point of “SPL Drive” service by dragging
“Turn” command