CS1951R

Welcome to Introduction to Robotics! In this course, you will learn the fundamentals of robotics and use them to create your very own autonomously flying drone!

2017 Website


Here is the link to the website of the 2017 class. Please use this to see an overview of the original class.

Signup Link


Please use this signup link to show interest in the course.

Anonymous Feedback Form


Please use this Anonymous feedback form to show provide anonymous feedback. We will read and take these into account!

Syllabus


Course Description

The aim of this course is to empower people to build robots. Students will build, program, and fly an autonomous drone. We will cover everything needed to program an autonomous robot, including safety, networking, state estimation, controls, and high-level planning. Although the course focuses on an autonomous drone, we will provide a broad overview of modern robotics, including some topics relating to autonomous ground vehicles and robotic arms.

Course Objectives

Each student will build and program their own small quadcopter. The course will provide basic components and a small number of replacement parts. After taking this course, students will be able to:

  • Explain the space of designs for robotic communications, safety, state estimation, and control.

  • Apply that knowledge to construct programs for communications, safety, state estimation, and control.

  • Build, program, and operate an autonomous robot drone.

Grading

The course will consist of projects, assignments, lectures and exams. Your grade will be made up of:

  • Projects (50%). You will be graded on a lab reports as well as getting checked off by the staff for demonstrating a certain capability.
  • Assignments (25%)
  • Exams (25%)

Projects and assignments will be due at 11:59pm on the day of the deadline.

Extra Credit for Outreach

You can obtain 15 points of extra credit applied optimally on projects, assignments, and exams for using your robot for an outreach activity during the semester. We will provide opportunities, or you can seek out your own opportunities. For example, we would like to provide a drone demonstration at the CS4RI Summit on December 13th. Alternatively you could arrange your own outreach. For example, you could arrange a drone demo at your local library over Thanksgiving break, or coordinate with a local elementary school to demonstrate the drone at one of their science classes. For it to count as outreach, it has to be with a formal organization (so a demo to your friends doesn’t count, but a demo to your friends in WiCS as part of a WiCS event would count). You are encouraged to do this in collaboration with others in the class. (You will all receive extra credit in this case.) To obtain extra credit, email the staff a report of your activity along with a photograph or video.

If you do this, be sure to test out the site in advance, bring adequate batteries, and take adequate safety precautions! You are strongly encouraged to consult with us in advance, we want to help your demo be a success!

Drones

We will provide all parts for a drone, plus a reasonable number of replacement parts for the inevitable crashes. You will also need a base station laptop. We will have a limited number of these to loan out, but we hope most students can use their own laptop for this purpose. Please contact us if you’d like to borrow a laptop.

Due to the equipment needs, we are only allowing 30 students to take the course.

Safety

Please read this policy carefully.

This drone can inflict serious bodily harm. You should treat it as you would a dangerous chemical or heavy equipment such as a lathe. It can move very quickly; faster than if you dropped it from a 3 story building. It is your responsibility to learn and apply all safety guidelines and rules in order to keep yourself and everyone around you safe when operating the drone.

  1. You agree to follow all guidelines on the FAA Website.

  2. If your drone injures a person or damages any property, you will be held responsible, whether or not you are present.

  3. If you are flying a drone that injures a person or damages any property, you will also be held responsible.

  4. If you are not following guidelines from the course staff, you will be held responsible for any damage or injury.

  5. I agree that all observers and participants will wear safety glasses.

Workload

This course will be a substantial time commitment. If you are unable to allocate 10+ hours a week, please consider taking the course next year when the capacity will be higher. Tuning a PID can be a time consuming process even for a veteran.

That being said, hard work will lead to success with high probability. We put the hardware through many revisions and tested multiple choices for each component, ultimately choosing parts based on robustness and performance. If hot glue is employed as prescribed, we are confident that your drone could survive many crashes of magnitude beyond those your unit will experience (skimp on the glue and your flight controller USB port will snap on the first crash). The projects and research pipeline have been devised to allow the safe development of capabilities through proper ordering and test equipment.

Late Policy

Up to four late days (For 2018 Fall, we give everyone 12 late days) total on projects and labs will be allowed. A single day cannot be subdivided between assignments but the three days will be applied optimally at the end of the semester. After the three days are applied, a penalty of 10% per day will be in effect (i.e. max point will become 90, then 80, etc).

Sometimes there are special circumstances during the semester that result in exceptions to this late policy. All such circumstances require permission from the instructor. In general if you have any problems it’s a good idea to contact the Deans because they can help balance your course load and take the pressure off in difficult situations.

Collaboration Policy

Please read this policy carefully.

We strongly encourage teaching and learning with your peers. We also strongly encourage taking advantage of Wikipedia and other online sources during your education. We want every sufficiently motivated student in the course to be able to understand and complete all the homeworks and projects. At the same time, your work must, in the end, represent your own understanding of the material.

  • Using the internet: This course will have significant technical components, and we expect you to make use of the online resources to solve some technical problems like interfacing with components and installing packages. Finding solutions online is an important skill! However, you may not make use of the internet to find implementation details (code, pseudo-code or otherwise) of the algorithms and systems we are asking you to develop.

  • Using your peers: You may discuss ideas and debug with your peers. However, keep you will be assessed individually on exams (which may involved randomized components), so get in the habit of seriously thinking about each problem alone before looking for peer and online help.

Textbook

The textbook is Probabilistic Robotics by Sebastian Thrun, Wolfram Burgard and Dieter Fox, 2005. However we are also developing our own book and course notes for drone-specific material. These can be found in the operations manual and the Duckiesky textbook on the Duckietown website. (We will post the links soon.) The operations manual is a reference that describes how to build and fly the drone; it is a detailed reference on the system architecture, hardware components, and web interface. The course textbook contains mathematical derivations for the topics we will be covering, as well as the assignments and projects for the course.

Special Needs

Please inform Professor Tellex (stefie10@cs.brown.edu) if you have a disability or other condition that might require some modification of any of these course procedures. You may speak with her after class or during office hours. For more information, contact Students and Employee Accessibility Services at 401-863-9588 or SEAS@brown.edu.

Assignments


We are asking you to do shorter homework assignments to broaden your understanding of the material and explore some areas not directly addressed by the drone projects. Assignments are due at 11:59pm on the due date. Please use a handin script to hand in the assignment.

AssignmentOutDue
Assignment 1: Introduction 9/11 9/18
Assignment 2: Safety 9/18 9/25
Assignment 3: Networking 9/25 10/2
Assignment 4: Communications 10/2 10/9
Assignment 5: RC Flying 10/9 10/16
Assignment 6: Debugging 10/16 10/23
Assignment 7: Transforms 11/8 11/15
Assignment 8: Motion Planning 11/15 11/29

Projects


The projects are where you get to build and fly a drone. You will get hands-on practical experience with the robot. The Law of Leaky Abstractions is especially relevant to a robot. And you are working on a new robot that we have designed specifically for the class. In short, things will go wrong. It is important to think systematically about what is happening and debug each piece of the system and make sure it is working on its own before putting things together. There are many reasons why something might fail, ranging from a flakey network connection to bad lighting for the camera to a bug in the code, and we will all need to work together to figure things out. Don’t hesitate to come to office hours if you get stuck or need help!

Safety is extremely important whenever flying a drone. Please be very careful to follow all safety precautions we recommend. Never fly the drone over people, and never try to catch the drone when it falls. Crashes are part of flight - they will happen. We have replacement parts, but we expect you to fix your drone when it crashes.

ProjectOutDue
Project 1: Build 9/13 10/2
Project 2: Sensors 10/2 10/18
Project 3: UKF 10/18 11/2
Project 4: PID 11/2 11/13
Project 5: SLAM and Localization 11/15 12/6
Project 6: High Level Programming (Optional Project) 11/29 12/6

Schedule


Schedule is subject to change.

LectureDate
Lecture 1: Introduction (Slides) 9/6
Lecture 2: Safety and Ethics (Slides) 9/11
Lecture 3: Hardware and Robot Design (Slides) 9/13
Lecture 4: Networking (Slides) 9/18
Lecture 5: Robot Middleware (Slides) 9/20
Lecture 6: Sensors (Slides) 9/25
Lecture 7: Transforms (Slides) 9/27
Lecture 8: Uncertainty (Slides) 10/2
Lecture 9: Bayes Filtering and Kalman Filtering (Slides) 10/4
Lecture 10: Kalman Filtering, Extended Kalman Filtering, Unscented Kalman Filtering (Slides) 10/9
Lecture 11: 3D UKF, Measurement Models, Optical Flow (Slides) 10/11
Lecture 12: PID Controllers (Slides, EdX Module) 10/16
Lecture 13: More PID Controllers (See materials from the previous lecture.) 10/18
Lecture 14: Midterm Review (Slides Practice Midterm) 10/23
HCRI Seminar: Brandon Basso (Uber) 10/25
Midterm 10/30
HCRI Seminar: Tom Ryden (Mass Robotics) 11/1
Lecture 15: Localization (Slides) 11/6
Lecture 16: Particle Filters (See previous.) 11/8
Lecture 17: SLAM (Slides) 11/13
Lecture 18: Arms (Slides) 11/15
Lecture 19: Motion Planning (See previous.) 11/20
Lecture 20: High-Level Planning (Slides) 11/27
Lecture 21: MDPs and POMDPs (See previous.) 11/29
Tennis Court Day! 12/4
HCRI Seminar: John Kelly 12/6
Lecture 22: Final Review (Slides) 12/6
Final Exam 12/17 at 2pm

Hours


If you do not have elevator or key access to the location where hours are being held, please send an email to the TA or Professor holding those hours and they will let you in.

DayTimeLocationProfessor/TAs
Monday 4:00pm - 6:00pm SciLi 8th Floor IoT Lab Garrett and Luke
Tuesday 5:00pm - 7:00pm SciLi 8th Floor IoT Lab Josh and Baichuan
Wednesday 3:00pm - 5:00pm SciLi 8th Floor IoT Lab Theo and Sophie
Thursday 5:00pm - 7:00pm SciLi 8th Floor IoT Lab Josh and Baichuan
Friday 3:00pm - 5:00pm SciLi 8th Floor IoT Lab Theo and Sophie

FAQ


Can I have an extension?

Please see the course late policy in the Syllabus. Almost all extensions should be handled through this mechanism. Exceptions will need a note from the Dean. However if you have a problem, we encourage you to reach out to the Office of Student Life, as they can help in many other ways as well.

My drone isn’t flying!

Come to office hours and we will try to help! It is useful to debug piece by piece. Does it power on? Can you fly with the RC controller? Can you connect to the Pi? Do all the sensors work?

Staff


Professor

Stefanie Tellex

The Common Loon Codename: Loon

Grad TA

Eric Rosen

Dodo

Head TA

Josh Roy

Dodo

TAs

Luke Eller

Hummingbird Codename: Hummingbird

Baichuan Huang
Lazuli Bunting Codename: Lazuli Bunting

Garrett Warren
Golden Pheasant Codename: Golden Pheasant

Sophie Yang
Albino Peacock Codename: Albino Peacock

Theo Guerin
Albatross Codename: Albatross