Localization Using Interactive C and a Standard LEGO Mindstorms Hardware Suite Gary R. Mayer, Dr. Jerry Weinberg, Dr. Xudong Yu

Slides:



Advertisements
Similar presentations
Engineering Roles We will be forming groups of 3 students
Advertisements

Sensors.
Odometry Error Detection & Correction - Sudhan Kanitkar.
Robot Construction Basics Les Turner Director of Technology, Northern Indiana ESC Head Coach, Bremen Botz!
Geartrains Materials taken from several sources including: Building Robots with LEGO Mindstorms by Ferrari, Ferrari, and Hempel 1.
Navigating the BOE-BOT
Engineering H191 - Drafting / CAD Gateway Engineering Education Coalition Lab 6P. 1Autumn Quarter Gears Lab 6.
Geartrains Materials taken from several sources including: Building Robots with LEGO Mindstroms by Ferrari, Ferrari, and Hempel.
GEARS Gears and shafts are basically wheel and axles, but gears have cogs, or teeth on their circumference.
EML 2023 – Motor Control Lecture 2 – Motor. EML 2023 Department of Mechanical and Aerospace Engineering Let’s answer 3 questions. 1.How is the motor held.
Connecting VEX and ROBOTC
Engineering H193 - Team Project Gateway Engineering Education Coalition P. 1 Spring Quarter 2008 Robot Programming Tips Week 4 Day 2 By Matt Gates and.
The Turtle Laboratory Sequence Myles McNally LMICSE Workshop November , 2004 University of Mississippi.
Right Face Introductory Presentation. Opening Activity How can you use this to make a right turn program? This is your program from Full Speed Ahead to.
Engineering H193 - Team Project Gateway Engineering Education Coalition Spring Quarter 2005 P. 1 Drive Train Calculations Week 3 Day 1.
The Turtle Laboratory Sequence LMICSE Workshop June , 2005 Alma College.
Engineering H193 - Team Project Gateway Engineering Education Coalition Spring Quarter 2004 P. 1 Drive Train Calculations Week 3 Day 1.
FLL - The Power Puzzle 2007 Presentation by V. “ CyberGranny ” Greene Brics-2-Bots Lab To RCX or To NXT: That is the Question!
Engineering H191 - Drafting / CAD Gateway Engineering Education Coalition Lab 6P. 1Autumn Quarter Gears Lab 6.
Arson Robot Matt Boyden, Tim Crowley, Andrew Hollyer.
Geartrains Materials taken from several sources including: Building Robots with LEGO Mindstorms by Ferrari, Ferrari, and Hempel.
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.
VEX Drive Systems Presented by Chani Martin Lauren Froschauer Michelle Presented by Chani Martin Lauren Froschauer Michelle.
Urban Search & Rescue Project Hints & Additional Information.
LEGO Mindstorms NXT Introduction. Component NXT Brick Touch Sensor Light Sensor Ultrasonic Sensor Interactive Servo Motors MMN Lab.
3-D Scanning Robot Steve Alexander Jeff Bonham John Johansson Adam Mewha Faculty Advisor: Dr. C. Macnab.
Teaching Deliberative Navigation Using the LEGO RCX and Standard LEGO Components Gary R. Mayer, Dr. Jerry Weinberg, Dr. Xudong Yu
Localisation & Navigation
ORTOP WORKSHOP 3 ROBOT NAVIGATION & MISSIONS ORTOP WORKSHOP 3 ROBOT NAVIGATION & MISSIONS.
Compound Gears Unit 6.
Sci 701 Unit 6 As learned in Unit 5: Speed, Power, Torque, and DC Motors, a motor can generate a set amount of power. Introduction to Gears Since there.
Overview of Project 1 Slides are available at : Report due next week Matthew Murach.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 3.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Lecture 22 Dimitar Stefanov.
SIPHER Students: Javier Lara, Darren Lamison-White Graduate Student Advisors: Ethan Jackson, Ryan Thibodeaux Controlling Robots: Long distance, straight-line.
Overview of Project 3: Phase A Slides are available at : Report for all phases due last day of class
A Multidisciplinary Approach for Using Robotics in Engineering Education Jerry Weinberg Gary Mayer Department of Computer Science Southern Illinois University.
Lecture 23 Dimitar Stefanov. Wheelchair kinematics Recapping Rolling wheels Instantaneous Centre of Curvature (ICC) motion must be consistent Nonholonomic.
In Unit 5: Speed, Power, Torque, and DC Motors, you build a VEX test stand winch that enables you to learn key engineering concepts and principles so.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4/Lab3.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
Gears A gear is a wheel with teeth.
Oregon Robotics Tournament and Outreach Program RCX Basics.
EV3 Software EV3 Robot Workshop
ROBOTC Software EV3 Robot Workshop
Group 7 Project 1 Presentation Robert Moe John Zumwalt Mark Woehrer Celi Sun.
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
Deriving Consistency from LEGOs What we have learned in 6 years of FLL by Austin and Travis Schuh © 2005 Austin and Travis Schuh, all rights reserved.
Topic 2: The Wheel and Axle, Gears, and Pulleys
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Mechanical Power Trasnmission. Introduction In this Unit students were introduced to some of the concepts of classical mechanics, and also of DC motors.
Integrated Hands-On Mechanical System Laboratories Arif Sirinterlikci, Ph.D., Professor of Engineering Tony Kerzmann, Ph.D., Assistant Professor of Mechanical.
Different Types of Robots
VEX IQ Curriculum Smart Machines Lesson 09 Lesson Materials:
SEI Robotics Lego Mindstorm Competition
Deriving Consistency from LEGOs
Robo-Math How Far? The Distance a Robot Travels in One Rotation of the Motor = The Circumference of the Wheel Circumference (of the Wheel) = Diameter (of.
Sensors For Robotics Robotics Academy All Rights Reserved.
Sensors For Robotics Robotics Academy All Rights Reserved.
Mechanisms PLTW Gateway Unit 2 – Lesson 2.2 – Mechanical Systems
Introductory Presentation
Holyoke Codes LEGO ROBOTICS
Geartrains Materials taken from several sources including: Building Robots with LEGO Mindstroms by Ferrari, Ferrari, and Hempel.
Lego MINDSTORMS EV3.
Oregon Robotics Tournament and Outreach Program
Geartrains Materials taken from several sources including: Building Robots with LEGO Mindstroms by Ferrari, Ferrari, and Hempel.
Jerry Weinberg Gary Mayer Department of Computer Science
Presentation transcript:

Localization Using Interactive C and a Standard LEGO Mindstorms Hardware Suite Gary R. Mayer, Dr. Jerry Weinberg, Dr. Xudong Yu Southern Illinois University at Edwardsville Department of Computer Science 22 March 2004 American Association for Artificial Intelligence Spring Symposium 2004 Session on Accessible Hands-On Artificial Intelligence and Robotics Education: Laboratory Exercises 1

22 March 2004AAAI Spring Symposium Localization Discussed with students after –Deliberative robotic paradigm. –World models –Knowledge representation. –STM and LTM. Discuss both deductive reckoning and landmarking. –LEGO sensors limit landmarking ability. –Using ded reckoning for deliberative exercises.

22 March 2004AAAI Spring Symposium Deductive Reckoning Shaft Encoder –Rotation sensor. 16 ticks / rotation (22.5 degrees / tick). –Typically accurate between 50 and 300 rpm. »Standard 9V motor turns at 250 rpm under typical load. –Can emulate with light sensor or touch sensor. Can’t determine direction of rotation. IC4 –Require UI to input start location and orientation. –Reference encoders by port number. enable_encoder(#) versus enable_bidir_encoder(#) reset_encoder(#) read_encoder(#)

22 March 2004AAAI Spring Symposium Overcoming Problems Facing Deductive Reckoning LEGO Sensors Provide Poor Granularity. –22.5 degrees is about 6 mm of possible error on a 30.4 mm diameter wheel. Most noticeable when turning; error propagates to next linear motion. –Place sensor on same shaft as motor and gear down to wheel shaft. Less rotation / tick, lower speed, greater torque. Physical Design Causes Immeasurable Errors. –Supported axles (“bowing”) –Balance load (“skateboard effect”) –Centrally-mounted turning axle (“shopping cart effect”) –Account for gear slop.

22 March 2004AAAI Spring Symposium Dual-Differential Design Wheel shaft on one differential. –Preferably centrally located One motor geared to each differential shell. Consistent power to both wheels is ensured if second motor is braked or on. –Best way to ensure straight-line motion without PID. –Given gearing between shells, each applies power to the other’s shafts in equal but opposite directions. Allows numerous types of motion with single configuration. –linear motion (  drive shell > 0,  turn shell = 0) –0-radius turn (  drive shell = 0,  turn shell > 0) –turns about a wheel (  drive shell > 0,  turn shell = ±  drive shell ) –varying radial turns (  drive shell > 0,  turn shell  drive shell ) Drive shell shaft 2 shaft 1 Turn shell For class instruction, use a model!

22 March 2004AAAI Spring Symposium Sample IC4 Code #define DRIVE_ENCODER 1 #define DRIVE_MOTOR 1 #define TURN_MOTOR 2 #define MOVE_TICKS 30 void main() { enable_bidir_encoder(DRIVE_ENCODER); reset_encoder(DRIVE_ENCODER); brake(TURN_MOTOR); motor(DRIVE_MOTOR, 100); while ( read_encoder(DRIVE_ENCODER) < MOVE_TICKS ); brake(DRIVE_MOTOR); motor(DRIVE_MOTOR, -100); while ( read_encoder(DRIVE_ENCODER) > 0 ); brake(DRIVE_MOTOR); return; }

22 March 2004AAAI Spring Symposium Application Many students taking an introductory robotics course are programmers and know little of mechanics. Students designed and built the robots for the labs. Along with instruction on steering, radius of turns, and differentials, the localization lecture can be used to ground the code to the realities of the physical world brought on by student designs. –Ratios impacting code variables. Distance to travel : wheel circumference : ticks per wheel turn Motor : rotation sensor : wheel axle gear trains –Steering approach. –Sensor calibration. –Error compensation. Bonus points for less nudges.

22 March 2004AAAI Spring Symposium Demonstration Student lab objective was to build a deliberative paradigm architecture that planned and traveled a path from start location to known goal location, avoiding obstacles (known and unknown) on the way.

22 March 2004AAAI Spring Symposium Landmarking Light sensor is main ranged sensor. –Limited range makes placing color codes on floor better option than beacons. –Inconsistent values between different light sensors. –Color accuracy may allow for 3 distinct shades (black, white, green) –Light sensor array (mux on same port) is possible but very non-deterministic. IR port can also be used as a sensor. –“Marco-Polo” approach using another RCX as a beacon. Touch sensor could align by impacting known obstacles. –Impacts may knock robot, causing errors. –Use light sensor if consistent reading is gotten at X distance? IC4 –Raw values give better granularity than fitted range. –High values = darker; low values = lighter

22 March 2004AAAI Spring Symposium Diane’s Localization Using ded reckoning supported by a balanced design, dual-differentials, and correction for gear slop; Diane was able to navigate to the goals on a basic course and through an S-curve with little trouble. However, for the S-curve, the return trip required some nudges to ensure she stayed on course. This was consistent for most long runs. Thus, it is recommended that student labs be designed to focus on a one-way trip.

22 March 2004AAAI Spring Symposium Reference Ferrari, Mario, and Giulio Ferrari. Building Robots with LEGO Mindstorms: The Ultimate Tool for Mindstorms Maniacs!. Ed. Ralph Hempel. Rockland: Syngress Publishing, Inc., 2002.