1 / 8

# CPSC 203 Tutorial - PowerPoint PPT Presentation

CPSC 203 Tutorial. Xin November 22, 2010. Exercise. start. Skater turns towards skater2. Skater2 turns towards skater. Skater moves to pose 2. Skater2 moves to pose 2. Bunny move up by 0.5m. Bunny turns legs. Skater moves to pose 3. Skater2 moves to pose 3. Bunny move down.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about 'CPSC 203 Tutorial' - topper

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

### CPSC 203 Tutorial

Xin

November 22, 2010

start

Skater turns towards skater2

Skater2 turns towards skater

Skater moves to pose 2

Skater2 moves to pose 2

Bunny move up by 0.5m

Bunny turns legs

Skater moves to pose 3

Skater2 moves to pose 3

Bunny move down

Bunny turns legs back

end

• The condition must be a Boolean value, i.e., True or False.

• Use lab3If1.a2w for practice

• ==, !=, >, >=, <, <=

Hare’s height <= 2

True

False

Husky scratch ears

Husky barks 2 seconds

Husky walks circles equal to hare’s height

• Set the hare’s size to a random size at the beginning

• Set the random value between .1 and 1.5

• Use lab3Rep.a2w

Kick left leg

Point Cannon forward

Resize by 0.9

• Terminate the loop when certain condition is satisfied

• Revise the program so that the robot stops when its height > 1