Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

RCX Workshop Day 2 Programming with Touch Sensor Light Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological University.
NXTG Workshop Day 2 Programming with Touch Sensor Light Sensor Ultrasonic Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological.
EducateNXT Robot Sumo. EducateNXT What is Sumo? Sumo is a competitive contact sport where a wrestler (rikishi) attempts to force another wrestler out.
Robots Leslie B.. What is a robot? A robot is a machine that is capable of doing many kinds of actions.
Wait, sound sensor >70, Port 2 Flowchart – Heartbeat 1 Start Motor A, Move Backward, 1/3 Rotation, Power 20 Wait, 1 Second Sound Sensor (Port 2) Less than.
Automation and Robotics
©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
Jennifer Goodall, Nick Webb, Katy DeCorah
LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 3.
Twyla and Jordan.  Light over black line  Runs roverbot.
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*.]
Programming Design ROBOTC Software Principles of Engineering
Overview of Project 3 Slides are available at : Updated 1/28 Due Date for project has been extended to next Friday 2/6.
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
Wall Encounter By Made easy by Dwayne Abuel.
Evolutionary Robotics The Italian Approach The Khepera robot (1996) Developed at EPFL Lausanne, Switzerland(!) by Francesco Mondada Diameter: 55 mm Could.
3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
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.
Programming Fundamentals. Thinking about Programming Robots are made to perform useful tasks. Each robot is designed to solve a specific problem, in a.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Vex Robotics Program four: reversing and turning.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4/Lab3.
Oregon Robotics Tournament and Outreach Program RCX Basics.
Rescue Robot Day 2 Exploring Computer Science Lesson 6-11.
Software using a flowchart method of creating a control programme.
Lesson 1: Motors and Sound Programming Solutions.
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.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Programming Basics - RobotC Introduction to Robotics.
Forward Until Near Stop when near a wall.
Bot Shop Jane Taylor Dee Wallace Robot C For Vex.
Programming Design ROBOTC Software. Behavior-Based Programming A behavior is anything your robot does –Turning on a single motor or servo Three main types.
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Programming Design ROBOTC Software Principles Of Engineering
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Introduction to Programming in RobotC
Deriving Consistency from LEGOs
By Sanjay and Arvind Seshan
Learning Objective: to be able to design programs that use sequencing.
Programming Design ROBOTC Software Computer Integrated Manufacturing
Programming Part 2 Mod Kit
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Forward Until Touch Robot goes forward until it hits a wall.
Line Following Behavior
Global Challenge Night Sensor Lesson 2.
An Introduction to VEX IQ Programming with Modkit
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Line Following Behavior
SENSORS.
Programming Design ROBOTC Software Principles Of Engineering
Global Challenge Night Sensor Lesson 2.
Which way does the robot have to turn to get to the charger?
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Project Overview Introduction & Product Analysis
Global Challenge Night Sensor Lesson 2.
Programming Design ROBOTC Software Principles of Engineering
Oregon Robotics Tournament and Outreach Program
Exploring Computer Science Lesson 6-11
Presentation transcript:

Robot Programming

Programming Behaviors Behaviors describe the actions and decisions of your robot

Basic Behaviors Individual, bite-size functions that your robot performs directly Basic Behavior Turn motor A on forwards

Simple Behaviors Built of several basic behaviors Let you describe a full action of the robot Simple Behavior Go forward until you hit a wall and then turn Turn motor A on forwards Get touch sensor reading from Port 1 Turn off motors A & C Turn motor A on backwards Turn motor C on forwards Compare sensor reading to constant 0

Complex Behaviors Describe the full scope of what the robot can do Always composed of smaller behaviors, so you can break them down Complex Behavior Navigate a maze Drive forward Turn right Stop when you hit a wall Drive forward Stop when you hit a wall Turn right Turn left

Flowcharts Visually organizes steps in different shaped bubbles Good way to work out steps before you translate them into code Start End Drive forward Have you hit a wall? Stop motors Yes No

Flowcharts What does this flowchart describe? Is the gum hard yet? What about this one? Chew gum Throw gum in trash Yes No Put gum in mouth Start End Stop Motors Touch sensor pushed? Start motors Yes No Start End Chewing gum Go when touch sensor is pushed

Pseudocode Halfway in between English and computer code Describe what sensors and motors do and see with simple behaviors

Pseudocode What behavior does this pseudocode describe? Back up when you hit a wall and turn right 1.Move forward until the touch sensor is pressed 2.Stop all motors 3.Reverse for 1 second 4.Stop all motors 5.Turn right

Review Basic behaviors are actions the robot performs directly Simple behaviors are actions like we think about them Complex behaviors describe more interesting functions of the robot Flowcharts organize the steps Pseudocode describes the steps using the robot’s motors and sensors