KINECT WITH SCRATCH. Getting Started: Initial setup Be kind and gentle with the Kinect Setup Install the monitor mount Attach the Kinect Plug the Kinect.

Slides:



Advertisements
Similar presentations
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Advertisements

 In today’s new age technology, everything evolves at the speed of light. Now technology comes out almost on a daily basis and there for makes it hard.
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Sensors.
This document guides you through using the common features of the InFocus™ Mondopad™ touchscreen display located in this room. Getting Started Power Display.
Harry Potter Scratch Game
Connect with your. Wow! Motorized Tilt RGB Camera 3D Depth Sensors Microphone Array.
 First you have to think up a what kind of game are you going to have it can be any thing from a brick breaker to an role playing game.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
An intro to programming concepts with Scratch Session 2 of 10 sessions I/O, variables, simple computing.
Lab 03 Windows Operating Systems (Cont.). PYP002 Preparatory Computer ScienceWindows Operating System2 Objectives Develop a good understanding of 1. The.
Racing Car Game Using the keys to control a sprite.
Introduction to Programming and Physical Computing
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
LO: Learn how to develop your game further to include interactions with the device.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
INTRODUCTION TO THE SCRATCH PROGRAMMING ENVIRONMENT.
Making a Boat Racing Game in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2010.
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
Coding4Fun: Build Fun, Cool, Commercial Applications Using the Kinect for Windows SDK Dan Fernandez Director Microsoft Corporation Rick Barraza Senior.
How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer.
Scratch Programming Lesson 2 First glance to programming logic.
1 Understand how to use Scratch to: – Animate a sprite – Add sound to your script – Use the forever command to create a loop Lesson 2: Learning Objectives.
Introduction to Programming G50PRO University of Nottingham Unit 2 : Introduction To Scratch Paul Tennent
TECHNICAL TRAINING SMART COMMANDER System Requirements CPU : 800MHz and aboveCPU : 800MHz and above Memory : 256MB RAM or HigherMemory : 256MB.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Scratch Another computer programming language Developed by MIT in 2003
Intro CS – Screens and Variables Lesson Plan 9. Goals  Using sprites as full screens (Start screen, Game over)  Using layering to control ordering of.
Coding4Fun: Build Fun, Cool, Commercial Applications Using the Kinect for Windows SDK Dan Fernandez Director Microsoft Corporation Rick Barraza Senior.
Variables and Random Numbers Computer App Session 4.
INO301. BGR32 Format – Every Pixel (0,0 | 0,1 | 0,2) has blue, green, red, empty BGREmpty Kinect Image Sizes: 80x60, 320x240, 640x480.
Unit 1 Introduction to Evangel College S.2 ICT.
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
From last time… Explore the blue commands from the motion menu Find at least three ways to get the sprite to move to the UPPER LEFT corner.
Cloning in Scratch Computer App Session 6. Cloning in Scratch Learning Objectives: I will clone sprites in Scratch to create copies of an existing sprite.
 SCRATCH is a new programming language that lets you create your own interactive stories, animations, games, music, and art.
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
ICT/COMPUTING RULES Only use software allowed by the teacher
Vex Robotics program three: using motors and sensors together.
Coding4Fun: Build Fun, Cool, Commercial Applications Using the Kinect for Windows SDK Dan Fernandez Director Microsoft Corporation Brian Peek Senior Technical.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech.
Troubleshooting Dashhawk Issues. Here's what you have to do to have the DashHawk run properly Go to the ACTUAL PROGRAM file (not the short cut)
BGR32 Format – Every Pixel (0,0 | 0,1 | 0,2) has blue, green, red, empty BGREmpty Kinect Image Sizes: 80x60, 320x240, 640x480 DPI: 96.
Introduction to Scratch
Scratch Helicopter Game
Broadcasting (Adding a new level)
Module 1: Investigation 2 Repeating and Alternating Patterns
Scratch for Interactivity
How to work with your sprite
Diamond Hunt Mock Programming Project.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Explain what touch develop is to your students:
Scratch – Simple Programming
Activity Review  Activity 1: Create a quick scratch program that uses the following elements: forever loop, broadcast, change of scenery, reset back to.
Go to =>
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
An intro to programming concepts with Scratch
EEC-693/793 Applied Computer Vision with Depth Cameras
Getting Started with Scratch
Game Over Module 4 Lesson 2.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Getting Started with Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Presentation transcript:

KINECT WITH SCRATCH

Getting Started: Initial setup Be kind and gentle with the Kinect Setup Install the monitor mount Attach the Kinect Plug the Kinect into the wall/power strip Plug the Kinect into a USB port Wait for drivers to finish install Install Python from public server Add to system PATH: c:\python27;c:\python27\lib;c:\python27\scripts Run get-pip.py from Kinect utility folder Open a command prompt (Windows key + R, then cmd.exe) CD\Python27\Tools\Scripts Now inside the command prompt black window: pip install flask pip install flask-cors pip install pykinect pip install greenlet Copy Kinect2Snap folder from public drive to your machines C: drive (the root folder) Run gevent installer from Kinect utility folder Go to Kinect2Snap folder in C: drive, double click server.py Copy Sample for Snap.xml from Kinect utility folder, and import into Snap

Every day setup (4 th period) Plug in the Kinect to the wall and to the PC Go to the This PC, C: drive, open Kinect2Snap, and open server.py

Tear down at end of day (5 th period) Tear down Quit Scratch, Kinect2Scratch, unplug everything, put it all carefully back in the box and store the box

Basic Sensing Find all of the new sensor variables in the Sensing group Each has X and Y values Skeleton Example: In a forever loop: Pen lines are drawn between the joints Sprites are placed at each joint

The Kinect Data Kinect data comes to Snap from a mini "web server" The http blue block asks the server for kinect data Use skeletons/2 to get data for a second player The split green block turns that data into a list of data points We set variables to the items in the list This forever loop on the stage constantly updates the variables

The Kinect list of data The list has the info in the order to the right There are 20 skeleton joints listed Each one takes up 3 places in the list Example: footleft X position is slot 1, Y position is slot2, and Z position is slot 3 Starting (X) slot is listed for each footleft1 footright4 ankleleft7 ankleright10 kneeleft13 kneeright16 hipcenter19 hipleft22 hipright25 spine28 handleft31 handright34 wristleft37 wristright40 elbowleft43 elbowright46 shouldercenter49 shoulderleft52 shoulderright55 head58

Sensing - Interaction Click buttons using sprites Have a sprite follow your hand When sprite touches button sprite, cycle colors for 1 second before “clicking” What other kinds of interaction are there? Swiping Pinching/Stretching Gesturing (look for movement shapes)

Sensing - Movement Use movement to trigger events Look for movement of a point in time (use Timer) in a specific direction, or compared to other points (such as hand above head) “Grab” sprites and “Throw” them Have a sprite follow your hand When it touches another sprite, grab it (move it with the 1 st sprite) When you see rapid movement, “release” it in the direction of movement What other things might you capture movement for? Dancing games Music games (play the piano, drums, other?)

Sensing – Controlling variables Use two points to create an angle setting – hand to shoulder Slope = (y2-y1) / (x2-x1) Angle = Inverse Tangent of slope: Operator = ATAN Look at Angry Shark project for a refresher on trajectories Distance between points = launch speed Another gesture to “fire” Shoulder (X2, Y2) Hand (X1, Y1) Slope = rise / run Run Rise TAN ɵ = Rise/Run, so Angle ɵ = ATAN(Slope)

Kinect Project Groups of 4 At least 2, and up to 4 player game (one or two players at a time) You get to decide the game Details described in project spec Divide the tasks up, but work together to get it done Leverage code youve done previously!

Teams – 4 th Period Team 1 Hamza Shafique Manon Modal Cameron Hill Blake Barrett Team 2 Connor Knutson Sarah Ahn Nick Doan Isaiah Shim Team 3 Donovan Bahall Annika Hildebrand Dustin Bowcutt Joseph Bluett Team 4 Chase Cleary Grace Miao Dane Petterson Thomas Guilbert-Newell

Teams – 4 th Period (continued) Team 5 Sebastian Miller Addisen Tucker Max Evdemon Team 6 Sikali Vidal Marley McVay Tushon Barquet Sam Cormier Team 7 Alex Luzhnov Tianna Cooper Hunter Kiphart Team 8 Mustafa Masud Isabella Paxton David Shiroma Brendan McKlintoc

Teams – 5 th Period Team 1 Ben Siroka Hudson Vogel Noah Kim Brooke Sypher Team 2 John Gibbons Klarity Riesen Alex Nickel Hannah Robison Team 3 Carter Shane Eliza Gutke Andrew Burger Nathan Dunn Team 4 Andre Woods Joey Rosauer Ali Hirayama Josh Banerjee

Teams – 5 th Period (continued) Team 5 Nick Cardenas Emma Patterson Daniel Shomaker Julia Hepperle Team 6 Jeremy Chang Avery Escobar Sofia Olson Justin Cavagnaro Team 7 Paul Kim Ethan Cruz Talavera Alysse Legault Henry Bainivalu Team 8 Nathan Mills McKenzie Gonzales Ankur Garg John Christison Team 9 Makena Booth Frederick Jarvis Andrew Fox