Presentation is loading. Please wait.

Presentation is loading. Please wait.

Final Project Web Design. Final Project Your robot will be placed in a room with the red cone. Your robot will need to find the cone in the room and run.

Similar presentations


Presentation on theme: "Final Project Web Design. Final Project Your robot will be placed in a room with the red cone. Your robot will need to find the cone in the room and run."— Presentation transcript:

1 Final Project Web Design

2 Final Project Your robot will be placed in a room with the red cone. Your robot will need to find the cone in the room and run into it. – Extra credit if your stops when it hits the cone. Final Projects must be completed by the end of class on Tuesday May 31 st ! Project demonstrations will be done June 1 st and 2 nd.

3 Requirements 1.You program must have at least 3 functions: 1.Find the cone. 2.Move to the cone. 3.Main function to control it all. 2.Everyone must work on some part of the project. At the end of the project each team member must submit a paragraph explaining their contribution to the program to get any credit.

4 Requirements 3.Comments! Each process must be commented as to its function and purpose. 4.Your robot will need to ignore the green ball and the orange cones. 5.Extra Credit if your robot can recover form bring thrown off course (i.e. can it find the cone again?)

5 Rubric Beginning 1 (5 points) Developing 2 (10 points) Accomplished 3 (15 points) Exemplary 4 (20 points) 1. Code Format No use of Comments No use or only 1 use functions No main method Improper syntax. Some use of Comments at beginning of Program At least 2 Functions Detailed comments for each section of the program. 3 Functions – Find, Go to, and Main method Detailed comments. Loops well documented 2. Code Content Takes robot a long time to locate cone or finds the wrong item in the room. Robot finds the cone and makes movement toward the cone. Robot efficiently finds the cone. Movement to the cone is quick. Robot can recover if goes off course. 3. FunctionalityCode does not run, restarting code more then 2 times or need to move the robot. Code runs with less than 3 mistakes. Restart less than 2 times. No recovery if the robot is thrown off course. Robot has problems if obstacles are in the room. Code runs without mistakes. No restart needed. Robot ignores other obstacles. Robot does not recover if throw off course. Code runs without mistakes. No restart needed. Robot ignores other obstacles. Robot recovers if thrown off course.

6 What you told me you needed to know… 1How to make the robot move 13How to tell if the object is in front of the robot 2Make it take a picture 14How to tell if the robot is “stalled” 3How to connect it to bluetooth 15Is the object is in the picture 4Python syntax 16Where in the picture the object is 5How to start up the bluetooth adaptor 17 6How to connect the bluetooth to the computer 18 7How to program the commands (IDLE) 19 8How to make the robot turn 20 9How to execute a method 21 10How does the computer “see” a picture 22 11How to display a picture 23 12How to tell colors (analyze a picture) 24

7 Stalled Robot Scribbler has a way of sensing that it is stalled when trying to move. This is done by using the Myro function getStall: – getStall() Returns True if the robot has stalled, False otherwise. – You can use this to detect that the robot has stalled and even use it as a condition in a loop to control behavior. For example: while not getStall():

8 Is the Object in the Picture? You will need to determine this. – Analyze each pixel in the picture. – Count the number of pixels that you think are the red cone. – If the count is greater than a threshold you have found the item. You need to decide the threshold and how to decide if a pixel is part of the cone. What are R, G, B values that you think identify the cone? Can you use 1 of R, G, B or 2?

9 Where in the picture is the object? Remember you care where the item is from side to side (not top to bottom). X pixels are numbered from 0 to 255 (left to right) – Divide the image into 3 parts: Left third 0 - 85 Middle 85 – 170 Right 170 – 255 If you average the x values of the cone in the picture you will know roughly where in the picture the cone is.

10 What you told me you needed to know… 1How to make the robot move 13How to tell if the object is in front of the robot 2Make it take a picture 14How to tell if the robot is “stalled” 3How to connect it to bluetooth 15Is the object is in the picture 4Python syntax 16Where in the picture the object is 5How to start up the bluetooth adaptor 17 6How to connect the bluetooth to the computer 18 7How to program the commands (IDLE) 19 8How to make the robot turn 20 9How to execute a method 21 10How does the computer “see” a picture 22 11How to display a picture 23 12How to tell colors (analyze a picture) 24


Download ppt "Final Project Web Design. Final Project Your robot will be placed in a room with the red cone. Your robot will need to find the cone in the room and run."

Similar presentations


Ads by Google