1 Robots: an educational revelation in CS at a Jesuit College R. Mark Meyer Canisius College Buffalo, NY.

Slides:



Advertisements
Similar presentations
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
Advertisements

Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
Sonar and Localization LMICSE Workshop June , 2005 Alma College.
Building Mindstorms NXT Robots Dr. David Johnson School of Computing.
Mingo County Shewey Science Academy: NXT Training.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
James Tam Introduction To CPSC 231 James Tam Administrative (James Tam) Contact Information -Office: ICT 707 -
The Turtle Laboratory Sequence Myles McNally LMICSE Workshop November , 2004 University of Mississippi.
Introduction to Lego Mindstorms LMICSE Workshop June , 2005 Alma College.
The Turtle Laboratory Sequence LMICSE Workshop August , 2006 Villanova University.
CSC Intro. to Computing Lecture 17: Even More Robotran!
Not Quite C: A CS 0 Option LMICSE Workshop June , 2005 Alma College.
1 Robots: The Friendly Motivating Machine R. Mark Meyer Canisius College Computer Science Department Buffalo, NY.
The Turtle Laboratory Sequence LMICSE Workshop June , 2005 Alma College.
Maze Running Robots EGR106 Project Spring Project Goal Computer control (through a Matlab program) of a Lego robot to: 1.Explore a maze (start to.
1 Robotran: Robot programming adventures for novices in LEGO-land R. Mark Meyer Debra T. Burhans Canisius College Buffalo, NY.
Deepak Kumar Promising Practices in CS1 Personal Robots for CS1 Deepak Kumar Bryn Mawr College.
Honors 101, Fall 2006 Please do not sit in back of room! Lots of info on web page Join the mailing list Download Eclipse and start using it Read the text.
Conceptual Model by Aaron Garrett and David Thornton Mindstorms Internet Control Environment.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
The NXT is the brain of a MINDSTORMS® robot. It’s an intelligent, computer-controlled LEGO® brick that lets a MINDSTORMS robot come alive and perform.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
How to turn on the robot How to start Bluetooth How to connect to robot How to initialize the robot How to not break the robot Sec Getting Started.
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
LEGO NXT Robot Programming Introduction to Programming a Lego NXT robot in Java.
Robotics Abstractions: Levels of language, world view
Adapted for STLP Camp ‘10 STLP Robotics Camp June 3 & 4.
What is AIBO ? AIBO is produced by SONY Marketed as an entertainment robot Has sensors for input Has LEDs and sound for output as well as motors for movement.
Interfacing the LEGO RCX to the outside world John M. Larkin Whitworth College Spokane, WA.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Computer Science, Software Engineering & Robotics Workshop, FGCU, April 27-28, 2012 Nicholas Alteen Evan McKeon Michael Humphries Computer Science Program.
Adapted for STLP Camp ‘09 Mobile Robots Why do robots need to move?
By Crystal Wettingfeld Supported by Lamar University, a Broadening Participation Grant from the National Science Foundation under Grant No , and.
Why do robots need to move?
Using the AIBOs in a CS1 course John Chilton and Maria Gini Dept of CSE, University of Minnesota.
USING AN INTEGRATED 3D AND ROBOTICS ENVIRONMENT TO TEACH COMPUTATIONAL THINKING EFFECTIVELY Stephanie Graham Shiloh Huff Sabyne Peeler * This research.
CSC Intro. to Computing Lecture 16: Robotran.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
Reactive robots UPNA The Public University of Navarra Material for pupils & students.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
A Multidisciplinary Approach for Using Robotics in Engineering Education Jerry Weinberg Gary Mayer Department of Computer Science Southern Illinois University.
Sentry System Multiple Sensors
LEGO MINDSTORMS COMPETITION
Lego MindStorm An Introduction to Blocks. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
University of Limerick1 Computer Applications CS 4815 Robocode.
Find the Mindstorms Icon on the computer.. To start a new program click go.
15-100: Introduction to Programming w/ Java * Ananda Gunawardena -- Lecture – School of Computer Science – Phone : (x81559) – Office: Wean Hall.
Getting Started in RobotC // Comment task main() motor[] {} wait1Msec() ; = Header Code Compile Download Run Take out your notes.
Mindstorms 1.1 Today’s topics l AI l History of Robotics l Uses of robots l The RCX l ROBOLAB l Upcoming ä Basic control ä Kinematics ä Robot architectures.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
Oregon Robotics Tournament and Outreach Program RCX Basics.
Introduction to Robots and the Mind Bert Wachsmuth & Michael Vigorito Seton Hall University.
1- How to connect the robot to the pc Sec Getting Started 3- How to move the robot Sec Scribbler movements 4- How to make a turn 11- How to.
1 st PeriodAP Computer Science 2 nd PeriodComputer Science I 3 rd PeriodIntroduction to Programming 4 th PeriodComputer Science I/ Advanced Projects Lunch.
Experience with Code Hunt in K-12 Alfred Thompson Bishop Guertin High School
A Robotics Introduction to Computer Science AAAI Spring Symposium 2007 Debra T. Burhans Canisius College
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Lego League. What is the Lego League? What we will be doing for the next few weeks The AIM of the next few weeks is to gain knowledge into programming,
Advanced issues in Robotics and Programming Dr. Katerina G. Hadjifotinou Experimental Junior High School of the University of Macedonia.
Presentation Outline I. Background Information II. Design Project
Robots: The Friendly Motivating Machine
Understanding Communication with a Robot? Activity (60 minutes)
UNCW Computer Science Jack Tompkins Daniel Heywood
Getting Started in RobotC
Module F: Presentation Understanding Robot Fundamentals
Oregon Robotics Tournament and Outreach Program
LEGO Mindstorms Robot and Java
Professor: Peter Stone
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

1 Robots: an educational revelation in CS at a Jesuit College R. Mark Meyer Canisius College Buffalo, NY

2 Outline 1.Our grant 2.Our learning goals 3.Our robots 4.Our courses 5.Our languages 6.Our assignments 7.Our experiences and conclusions

3 Our grant to put robotics into curriculum 2006 We were awarded an in-house 3-year grant to introduce robotics into the curriculum. It is called the Peter Canisius Distinguished Teaching Professorship –Deb Burhans (CS and Bioinformatics) –Mark Meyer (CS) –David Sheets (Physics and Pre-engineering) Impact plans –Course revision –New courses, some in core curriculum and HONORS programs –Outside speakers –Training events for local high school teachers After 1 year, we have met many goals and are on-track This July we will sponsor a NXT training session for local teachers

4 Our Goals (curricular) Recruit new CS majors Retain current CS majors Make the general studies courses more accessible and fun Improve early programming skills for CS majors Introduce AI concepts to juniors/seniors Learning Goals: the students will know... 1.how to describe and define a robot 2.how to interface robot sensors & motors using Java 3.how to better program traditional loops, decisions, subprograms 4.how to describe some AI challenges and techniques

5 Our robots Lego Mindstorms RCX (approximately 30) Lego Mindstorms NXT (approximately 23) Sony AIBO (6) [The cute white “dogs”, no longer made] ER-1 (2) [Evolution robotics] Create from IRobot (1) [A vacuum-less Roomba for robot experiments] – just got this! (Funded by the in-house grant plus a $70,000 NASA grant)

6 Our penbot The Pen bot a roverbot with an attached pen so it can draw, like turtle graphics. (This bot was based on other bots described elsewhere, including the 2005 workshop.)

7 Our courses CSC 110 – A “CS 0” course CSC 109 – Another “CS 0” course that is solely robotics EGR 111 – Introduction to engineering (pre-engineers) CSC 111 – Our Java-based “CS 1” 1/3 of the labs are robots CSC 360 – Intelligent Systems: AI, robotics, knowledge bases CSC 391/491 – Seminar, 1 credit hour special projects

8 Our Assignments Early courses (majors and non-majors) –CSC 109 Build robots for competition using Robolang –CSC 110 Write programs to draw things –EGR 111 Write programs using bricxcc CS 1 (usually majors) –CSC 111 Use lejos for wide variety of tasks (listed later) Junior/Senior courses (majors) –CSC 360 Robot competition, wumpus world, track following –Seminar Variety of tasks: Sony AIBO, ER-1, etc.

9 Our Translator: Robotran V.1 Translator program  Robolang – a simple Python-ish language  Translator to true Lejos  Used as web applet or standalone Java app  Can compile and download

10 Robolang Details Streamlined syntax for assignments and control structures, especially button handler methods Uses Java expression syntax and transparently inserts into the final Lejos code Simplified robot commands: –go forward 10 seconds Motor.A.start(); Motor.B.start(); try { Thread.sleep(10000); } catch (Exception e) {} Simplified function (method) syntax

11 Simple Light Follower program program follow1 constant BLACK = 42 loop var lightvalue = S3 display lightvalue if lightvalue < BLACK then stop else go forward end

12 Light Hunter program follow4 global constant BLACK = 42 global var turnedLeft = 1 loop var lightvalue = S3 display lightvalue if lightvalue < BLACK then do findLight else go forward end define huntLeft() returns number turn left sharp 25 degrees var lightvalue = S3 if lightvalue > BLACK then return 1 else turn right sharp 25 degrees return 0 end define huntRight() returns number turn right sharp 25 degrees var lightvalue = S3 if lightvalue > BLACK then return 1 else turn left sharp 25 degrees return 0 end define findLight var result if turnedLeft = 1 then result = huntLeft() if result = 1 then return end result = huntRight() if result = 1 then turnedLeft = 0 return end if turnedLeft = 0 then if huntRight() = 1 then return end if huntLeft() = 1 then turnedLeft = 1 return end

13 Our simulator Simulate the penbot, only one at a time, geared towards real assignments Don’t get overly caught up with 3d graphics Provide functionality with both Robolang and Lejos Make it flexible for future implementation on NXT Use the lejos compiled code that makes calls to the firmware ROM Create our own ROM object with same API and let the compiled code, running in tinyVM, call it Then our ROM object sends updates to a graphics simulation object Special credit to senior David Puehn for his exceptional programming and design help on the simulator.

Screenshot of new Robotran and Simulator

15 Activities & Assignments (CSC 111) 1.Robot acts like a sentry (back and forth) 2.Robot avoids obstacles by randomly turning after bumps 3.Robot randomly moves around (Brownian motion) 4.Robot responds to input through the buttons 5.Robot plays music 6.Robot senses light values and displays numbers on LCD 7.Robot goes forward only when flashlight is turned on 8.Robot turns to find light if low light level is sensed 9.Robot uses more elaborate schemes to find light source 10.Robot remembers direction of last successful turn to find light

16 Activities and Assignments (CSC 111) 11.Robot is taught a path which it can then replay (uses arrays) 12.Robot receives input from bumps and button presses, including binary or unary numbers 13.Robot draws a letter based on input number

17 Activities and Assignments (upper level) These are used in the robot competition, which can be entered by anyone in any class, from beginning to junior/senior level. 1.Robot follows a line on the floor, part of drag race competition 2.Robot tries to stay within a sumo ring while pushing another robot outside the ring 3.Robot navigates a maze (needs to remember path & obstacles)

18 Activities and Assignments (CSC 360) LEGO Mindstorms competition last 2 years “In 360 we only used the Aibos this year (2007.) Students learned how to control them using Pyro and completed basic labs on movement and vision. Then they worked on the wumpus world challenge with the low level operations using Pyro and high level KR&R using SNePS with the architecture that connects SNePS to Pyro that Alistair and I created.” (Deb Burhans)

19 Strategies for Worthwhile assignments (This applies only to CSC 111 assignments.) Don’t try to accomplish too much in one program! … keep the time-frame in mind and how much out-of-lab time they can have. Reinforce structured programming (use given methods and construct new ones; emphasize problem decomposition). Require use of appropriate data structures (usu. Arrays). Get them thinking about AI issues, especially flexible problem- solving strategies and multiple alternatives. Progress from simple to several more complex versions of same problem, e.g. the light follower. Use the button press model to reinforce listeners and handlers which are used in other aspects of Java (like GUIs).

20 Our experiences and conclusions Surveys show a strong positive attitude on part of students The comments are lavish with praise, but a few thought the robots were too primitive CS 1 students say the robots motivate them to stay in CS More CS 0 students are going on to CS 1 for the fun of it, especially the CSC 109 students No significant change in CS 1 final grades or other indicators of acquisition of programming skills Students in 110 and 109 liked Robolang better than Lejos when they got into 111 In our robot competition, groups used brixcc, Lejos and Robolang and did comparably using any language

21 Our experiences and conclusions (2) We need a lot of help in the labs (so we hire student helpers) Grading is a pain (can’t download and test every single program) Robot labs take a lot more time for students to complete; can’t do as much We need to staff after-hours lab time So far, no theft and almost no breakage! Students respond much more positively when each has their own robot to program; group exercises in 110 (made necessary by large number of students) were less gratifying

22 Our future plans Finish the Robotran simulator Port it to the NXT HONORS science elective on robotics in Spring 2008 –D. Burhans will teach –LEGO robot programming will be used for concrete activities –Readings, movies, discussions and papers will accompany Continue fulfilling broader goals of the Peter Canisius DT professorship

23 Our Contact Information cs.canisius.edu/~robotics –SOFTWARE tab on left: Several versions of robotran –COURSES tab: the CSC 111 assignments and Robolang programs addresses: