The CS1112 Fall 2010 exercises involving the use of the iRobot Create Simulator Toolbox are collected here, along with the instructions for obtaining the toolbox. The development of the simulator and these exercises was supported by an Academic Support Award from MathWorks
Download Exercise Code Solution
Download Project 3
Code
Email dfan at cs.cornell.edu for the solution
Project 5 builds on Project 3. The central problem is to evaluate visually how well the robot covers an area (the square-shaped lab from Project 3). Part 1 of the project asks students to write a function to generate a color map for visualizing data in a matrix. The simulator is not used in part 1. Part 2 of the project asks students to revise their code from Project 3 to create output files indicating the robot's travel and then write code to read those files in order to compute the 2-d histogram data representing the robot's travel. Finally students use the function from part 1 to visualize the 2-d data computed in part 2. The main programming concepts covered are 2-d arrays, cell arrays, structure arrays, and file I/O. Matlab graphics are used.
Download Project 5 Part 1
Project 5 Part 2
Code
Email dfan at cs.cornell.edu for the solution