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.
08/2012Tanya Mishra1 EASYC for VEX Cortex Llano Estacado RoboRaiders FRC Team 1817.
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.
Dr. Gary Stewardson, Raymond Boyles Hello again, Sparkey here. Slippery and I will help you explore how to create a program that simulates outputs on a.
Automation and Robotics
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
Repeating Blocks of Code (updated 9/20/05 7:35pm) Reference NQC Tutorial pp 9-12.
Programming – Touch Sensors Intro to Robotics. The Limit Switch When designing robotic arms there is always the chance the arm will move too far up or.
COMPUTER CONTROL Year 11. Lesson 1 Introduction to Computer Control.
Reactive robots UPNA The Public University of Navarra Material for pupils & students.
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
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
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.
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.
Title Slide Progress Report Name. Goal Goal Statement – ex. design/create/fabricate … - should be clear and short Needs/Problems – clear and short Space.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
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.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Lesson 1: Motors and Sound Programming Solutions.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
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.
How Do You Make a Program Wait?
Programming Design ROBOTC Software Principles Of Engineering
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Introduction to Programming in RobotC
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
Sensors Training.
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.
Programming Basics - RobotC
An Introduction to VEX IQ Programming with Modkit
Global Challenge Night Sensor Lesson 2.
Programming Fundamentals
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?
Flow Diagrams Start End
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Programming Design ROBOTC Software Principles of Engineering
Oregon Robotics Tournament and Outreach Program
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 Parts of a Flowchart Have you hit a wall? Start End Drive forwardStop motors Yes No Start of Program — Marks the beginning of the program. Begin here. Follow the line to get to the next block. Statement Block — A statement to execute,or a behavior to perform. Decision Block — A decision point in your program. Ask a simple question, and do different things depending on the answer. Yes/No (also True/False, etc.) — Answers to the question posed in the decision block. Follow the line labeled with the appropriate answer. End of Program - Marks the end of the program. If you reach this point, the program is done!

Flowcharts What does this flowchart describe? Tire at rated pressure? What about this one? Yes No Pump air Start End Stop Motors Touch sensor pushed? Start motors Yes No Start End Go when touch sensor is pushed Filling a tire

Pseudocode Halfway inbetween 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