Artificial Inteligence (LEGO MINDSTROMS PROGRAMING)
1)
Browse to http://www.robotvirtualworlds.com/
Investigate programming in Lego Mindstorms
If you would rather use actual, physical robots, you may borrow them from the department; contact your instructor
Mindstorms line following …
Based upon your investigation of the Lego Mindstorms robot and language, answer the following questions related to the “line following” program:
1) explain the algorithm for the line following program; precisely describe how the robot is able to follow a line.
2) explain why the robot doesn’t move in a straight line (why does it wobble); in order words, explain what it is doing while it is “following a line.”
2)
Create a program for your Lego Mindstorm NXT robot. The program will allow the robot to “patrol” in a bounded area. The area will be a white background bounded by a thick black line. Your robot must continue moving within the bounded area, but must not leave the bounded area (or stop).
Be sure you understand the following beforehand:
1 – the line following program
2 – the switch block
3 – the light sensor
To solve this problem, remember the steps in IT problem-solving. First, understand the problem. Second, plan the solution. Third, create the code. Fourth, test the solution. You don’t need access to the robot or software for steps 1 and 2. Give some thought to how you would solve the problem before considering the code to implement that solution.
Here is an online environment that allows you to simulate Lego Mindstorms. In this way, you don't need to use the actual robots.
https://www.virtualroboticstoolkit.com/
3)
Thoroughly read chapter 6 in The Essence of Artificial Intelligence. Apply the difference operator mask on page 129 to the image on page 128. Notes: use a threshold of 2; use the absolute value of the difference operation; the resulting matrix will be 7x7 rather than 8x8 (as the original is).
List the resulting matrix and show your work in computing it. This is a difficult assignment; don’t panic, but work carefully and deliberately.
FOR text book pls see another attachment.