Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Design. How to set up the robot How to link to robot How not to break my robot Sec 9-2 - Getting Started How to make it move How to control speed.

Similar presentations


Presentation on theme: "Web Design. How to set up the robot How to link to robot How not to break my robot Sec 9-2 - Getting Started How to make it move How to control speed."— Presentation transcript:

1 Web Design

2 How to set up the robot How to link to robot How not to break my robot Sec 9-2 - Getting Started How to make it move How to control speed of robot Python syntax/How to debug python How to turn How to scan the room Sec 9-3 - Scribbler movements How to create modules/methods in python Python syntax/How to debug python Sec 9-4 - Simple Functions (names) Parameters Python syntax/How to debug python Sec 9-5 - Functions with Parameters and Return Values Python syntax How to debug python Sec 9-6 - Creating and Using Modules Data analysis – Data structures Sec 9-7 - Simple Python Loops Math in python Data analysis – Data structures Sec 9-8 - Variables What you asked me to teach…

3 How to take a picture Sec 9-9 - Taking Pictures How to measure distance the robot needs to go Conditionals Sec 9-10 - Making Decisions in Python How to make it recognize a color How to scan the room Sec 9-11 - Image Processing and Perception How not to bump into things/proximity What you asked me to teach…

4 Proximity Sensors The fluke card is equiped with 3 sensors. getObstacle( ) can either be one of 'left', ‘center’, or 'right‘ The values reported by these sensors range from 0 to 7000. A 0 implies there is nothing in front of the sensor where as a high number implies the presence of an object. Example: While (getObstacle(“middle”)==0):

5 You only care where the item is from side to side (not top to bottom). “X” pixels are numbered from 0 to 255 / 0 to 426 (left to right) Divide the image into 3 parts: Left third 0 – 84 / 0 – 142 Middle third 85 – 169 / 143 – 284 Right third 170 – 255 / 285 - 426 If you take the average of the X value of all the pixels that you think are in the cone you will know where the center of the cone is. You will need to write code to nudge (barely turn) left or right to adjust to where the cone is in the picture. What part of the picture is the object in…

6 Questions??


Download ppt "Web Design. How to set up the robot How to link to robot How not to break my robot Sec 9-2 - Getting Started How to make it move How to control speed."

Similar presentations


Ads by Google