Assignment 1: Introduction
Contents
Assignment 1: Introduction#
This assignment gives an introduction to our course and reviews some basic material you will need. Hand ins will be noted in italics. Create an answers.txt file in your GitHub repository (see handin instructions at the bottom of this page) in which to write your answers.
Collaboration Policy#
Please read and sign the collaboration policy for CS1951R. Submit the signed pdf with filename collaboration_policy.pdf.
Safety Policy#
Please read and sign the safety policy for CS1951R. Submit the signed pdf with filename safety_policy.pdf
Motivations (20 points)#
Submit the answers to these questions in answers.txt
Before you start putting a lot of time into this course, it is important to figure out what you will get out of the course. Think about what you expect to learn from this course and why it is worth investing a lot of time.
What is a robot?
If I can fly a drone by remote, what can I get out of programming it?
Matrices and Transformations (20 points)#
Write the answers to these questions in the corresponding section of answers.txt.
Transformation matrices are fundamental to reasoning about sensors and actuators. For example, the robot might detect a landmark with its camera, and we might want to know the location of the landmark relative to the robot’s base. Or we might want to know where we can expect the landmark to be located after the robot has moved forward. We will cover this in detail but for know are asking you to do a warmup on these topics.
For this problem we strongly recommend you do these calculations by hand, because they are warmup questions designed to remind you of some of the prerequisite material for the class.
1. Multiply the matrix by the following vector:
2. Multiply the matrix by the following vector:
3. Imagine a robot is located in the \((x, y)\) coordinate plane at the origin \((0,0)\). It uses a sensor to detect an obstacle at a distance of \(6 m \) and a heading of \( 30^{\circ} \). The positive y-axis represents \( 0^{\circ} \), and the degrees increase when turning clockwise. What are the \((x, y)\) coordinates of the obstacle? Give the coordinates in answers.txt. Then draw your answer on a map and add it to your repo as map.png.
Law of Leaky Abstractions (20 points)#
Write your answers in the corresponding section of answers.txt
Read The Law of Leaky Abstractions. How might this be especially relevant to robotics? Make sure you address:
Give an example of a system that you have worked with that had an abstraction that “leaked.” Describe the abstraction, what it was hiding, and what went wrong so that the abstraction broke down.
How can we use abstractions in light of these challenges?
Handin#
If you do not have a GitHub account, please create one at this link. We will be using git repos throughout the course for versioning, moving code around, and submitting assignments.
Once you have a GitHub account, click on this link to join our GitHub classroom. This should ask you to select your name from the list and create a repository for you. Clone the directory to your computer
git clone https://github.com/h2r/assignment-introduction-yourGithubName.git
This will create a new folder. Before you submit your assignment, your folder should contain
collaboration_policy.pdf
safety_policy.pdf
answers.txt
map.png
Commit and push your changes before the assignment is due. This will allow us to access the files you pushed to GitHub and grade them accordingly. If you commit and push after the assignment deadline, we will use your latest commit as your final submission, and you will be marked late.
cd assignment-introduction-yourGitHubName
git add collaboration_policy.pdf safety_policy.pdf answers.txt map.png
git commit -a -m 'some commit message. maybe handin, maybe update'
git push
Note that assignments will be graded anonymously, so don’t put your name or any other identifying information on the files you hand in.