Programming Fundamentals

Slides:



Advertisements
Similar presentations
EducateNXT The Corridor Challenge The Corridor Challenge requires programming of a robot to negotiate obstacles and the corridor walls in order to reach.
Advertisements

08/2012Tanya Mishra1 EASYC for VEX Cortex Llano Estacado RoboRaiders FRC Team 1817.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Computational Neurobiology Center, College of Engineering, University of Missouri, Columbia MO DAY 2 – 50 minutes HOW DOES A ROBOT MOVE?
10-1 Programming Remember: –programming language –how to program (conceptually) –intro to programming the “ROBOT” computer In this lecture: –programming.
CSCI-100 Introduction to Computing Algorithms Part I.
Program ultrasonic range sensor in autonomous mode
Capacitor Connection in to LED socket Connection to 5v and ground Connection to light sensor pin.
EducateNXT Robot Sumo The robot gains intelligence.
CS 1308 Computer Literacy and The Internet Software.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
The Wait-Until-Event pattern Has it happened  Yes, it happened!
Barclays Robot Challenge Learn how to Program Robots.
CS221 Algorithm Basics. What is an algorithm? An algorithm is a list of instructions that transform input information into a desired output. Each instruction.
Programming Fundamentals. Thinking about Programming Robots are made to perform useful tasks. Each robot is designed to solve a specific problem, in a.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
1 Chapter 13 Artificial Intelligence and Expert Systems.
Obstacle Detection. In the previous program the robot moves forward and then checks for something in the way. As we observed it only checks for things.
Programming Basics - RobotC Introduction to Robotics.
Forward Until Near Stop when near a wall.
With. Project Overview  Introduction to Factory Automation Numerical Control  Build an autonomous robotic solution  Testing an autonomous robot build.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
The Corridor Challenge
LEGO Robotics Workshop
AP CSP: Creating Functions & Top-Down Design
DAY 2 – 50 minutes HOW DOES A ROBOT MOVE?
VEX IQ Curriculum Smart Machines Lesson 09 Lesson Materials:
In the beginning… software
IST256 : Applications Programming for Information Systems
Fundamentals of Information Systems
Leaders Don’t Create Followers, They Create More Leaders
Introduction
Copyright © 2008 by Helene G. Kershner
BASIC ELECTRONICS & ROBOTICS Instructor: Humayun Rashid Raahat
Robot Questions.
Copyright © 2008 by Helene G. Kershner
Computational Thinking Throughout the Curriculum
Looping and Random Numbers
Whole school homework projects
Predicates Predicate: A Boolean (yes-no) function. Example:
Computational Thinking
Introduction To Robot Decision Making
DT-Assessment Frame Work Term2
Problem Solving Susie .
Introductory Presentation
Creativity in Algorithms
Computers & Programming Languages
Forward Until Touch Robot goes forward until it hits a wall.
UNIT 3 CHAPTER 1 LESSON 4 Using Simple Commands.
An Introduction to VEX IQ Programming with Modkit
Programming Basics - RobotC
Unit 3: Lesson 6 & 7- Functions and Top-Down Design / APIs and Function Parameters Day 27.
An Introduction to VEX IQ Programming with Modkit
Communication Problem Solving Decision Making Team Working.
Teamwork.
Taking Action.
Nested If Statements While Loops
An Introduction to Programming with C++ Fifth Edition
U3L1 The Need For Programming
Your agenda should answer WHEN, WHO, WHY, WHAT, PREPARE, HOW.
FLUENCY WITH INFORMATION TECNOLOGY
Problem Solving.
POWER CHALLENGES Several Ways To Solve 7 CHALLENGES.
Project Overview Introduction & Product Analysis
Lesson 2 8 keys to getting hired.
Practice 1- Make Sense of Problems and Persevere in Solving Them
Obstacle Detection.
Chapter 6 Study Guide Task
Presentation transcript:

Programming Fundamentals

Thinking about Programming Robots are made to perform useful tasks. Each robot is designed to solve a specific problem, in a specific way. Creating a successful robot takes a team effort between humans and machines.

The human is responsible for identifying the task and planning out a solution and then explaining to the robot what it needs to do to reach the goal. The machine is responsible for following the instructions it is given, and thereby, carrying out the plan.

The human to robot language is called “programming” and instructions created in them are called ”programs”. The human who creates the program is called the programmer.

As a programmer, your primary responsibilities are: Formulate a plan for the robot to reach the goal. Translate that plan into a program that the robot can follow. ***Remember….. the robot only follows the program. It does not think for itself.

Planning and Behaviors To find a solution: Examine the problem. Try to see what the robot needs to do to accomplish the goal. Break the behavior down into smaller parts. Continue to break them down into smaller and smaller behaviors until you reach commands that you can express directly in the programming language.

Robot Decision Making Robots see the world using their sensors. Feedback provided by the sensors comes in number form or yes and no questions.

By coupling the number values provided by the sensors with the robot’s ability to answer questions, you can give the robot its decision making capability. When you ask the questions you’ll need to use Boolean comparison operators

Boolean Comparison Example If you want your robot to stop moving before it runs into a wall you could use the feedback from an Ultrasonic sensor and the “less than” operator to program it to “Move forward until the Ultrasonic sensor detects an obstacle less then 20 centimeters away.”