my first robot programming - simple “turn”

12
My first robot programming - Simple “Turn” Young Joon Kim http://www.helloapps.com MSRDS First Beginner Course – STEP4

Upload: shaine-ashley

Post on 02-Jan-2016

24 views

Category:

Documents


3 download

DESCRIPTION

My first robot programming - Simple “Turn”. MSRDS First Beginner Course – STEP4. Young Joon Kim http://www.helloapps.com. “Turn” Drive Commands. Turn Drive a robot with rotation angle and motor power Usages robotname.Turn(degrees, power) Range of motor power values - PowerPoint PPT Presentation

TRANSCRIPT

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

3

Preparing basic environment

4

Preparing basic environment

• Add a “Data” activity and “SPL Engine”

• Type “Script/BasicEnv0.txt” in the “Data” activity

5

“Turn” command

6

“Turn” command

• Add a new “Data” activity and change its type as “string”

1

2

7

“Turn” command

• Type “myrobot.Turn(90, 0.2)” in the new “Data” activity

– Rotation degrees : 90 degrees

– Motor power : 0.2

8

• Add an new “SPL Drive” service

“Turn” command

9

• Connect the output point of “Data” activity to the input

point of “SPL Drive” service by dragging

“Turn” command

10

• Select “value” item on the left list

“Turn” command

1

2

11

“Turn” command

• Run VPL diagram by pressing “F5” key or clicking “Start”

icon

12

“Turn” command

• Execution result

90 degrees