My first robot programming - Simple “Go”

Slides:



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

CECE STMWPR[ ] GO CM BASIC ROAMER CONTROLS: Click on the buttons to see what they each do!
BEGINNER EV3 PROGRAMMING Lesson
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.
Scribbler Movements Sec 9-3 Web Design. Objectives The student will: Understand the basic movement commands for the Scribbler Know how to create and execute.
What should I do first Young Joon Kim MSRDS First Beginner Course - STEP1.
HelloApps.com What should I do first Young Joon Kim MSRDS First Beginner Course - STEP1.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Elegant avoiding of obstacle Young Joon Kim MSRDS First Beginner Course – STEP5.
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: EV3 Basics Introduction to the EV3 Brick and Software.
VPL basic – data and variables Young Joon Kim MSRDS First Beginner Course – STEP6.
How to link the robot and the computer (Bluetooth) How to turn on and off How to connect the adaptor Fluke card connection Sec Getting Started How.
Conditions and loops Day 4 Computer Programming through Robotics CPST 410 Summer 2009.
Roamer help file: Use this power-point slide to find out more about the buttons on Roamer…
Find the Mindstorms Icon on the computer.. To start a new program click go.
Vex Robotics Program four: reversing and turning.
PROMGRAMING YOUR ROBOT How Servos Work: How to control your robot.
First glance of robotics course (VPL) Young Joon Kim MSRDS First Beginner Course – STEP3.
By Droids Robotics INTERMEDIATE PROGRAMMING LESSON BRICK BUTTONS AS SENSORS.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
Available at: – Program Functions to Accept Values Program Functions to Accept Values.
Programming - Motion Intro to Robotics. Motors and Sensors Setup The first thing we need to do is tell ROBOTC that we have motors on our robot. Choose.
My first robot programming - Simple “Go” Young Joon Kim MSRDS First Beginner Course – STEP4.
SPL basic – Build Simulation Environment Young Joon Kim SPL First Beginner Course – 03.
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.
Vex Robotics program three: using motors and sensors together.
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.
MySQL Getting Started BCIS 3680 Enterprise Programming.
Start Anaglyph Programming Young Joon Kim Stereoscopic & Anaglyph Course.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Using a set-up file to read ASCII data into Stata
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
BEGINNER PROGRAMMING LESSON
Add and Subtract Negative Numbers
What you asked me to teach…
Learning Objective: to be able to design programs that use sequencing.
What should I do first MSRDS First Beginner Course - STEP1
T_C_N_L_G_ E D I D I E O Y O H I E B J I R E A A W.
BEGINNER PROGRAMMING LESSON
Programming - Motion Intro to Robotics.
BEGINNER PROGRAMMING LESSON
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Controlling YOUR ROBOT
Starting a project in VisualDSP++
Line Following Behavior
DPI Vehicle Fleet Management DR-21
Basic Sensors – Laser Distance Sensor
Young Joon Kim SPL basic – Quick Start SPL First Beginner Course – 01 Young Joon Kim
INTERMEDIATE PROGRAMMING LESSON
Which way does the robot have to turn to get to the charger?
Using a Drawing Robot to Make Angles (Using Rotations)
VPL Patterns – Multi-Action Activity
Flow Diagrams Start End
My first robot programming - Simple “GoTo”
Grauer and Barber Series
Lesson 1 - Automating Tasks
SPL GraphicSprite Command
VPL Patterns – Loop Pattern using Notification
Lesson 18 – how to add a new button for pivot right
Young Joon Kim SPL basic – Quick Start SPL First Beginner Course – 01 Young Joon Kim
SPL Programming – While Loop Pattern
First glance of robotics course (SPL)
BEGINNER EV3 PROGRAMMING Lesson
SPL Programming – Procedure Pattern
Pose Sensors – Detect Orientation
Basic Sensors – RFID Sensor
My first robot programming - Simple “GoTo”
My first robot programming - Simple “GoFor”
SPL basic – Script types
MATLAB Interface Programming
Presentation transcript:

My first robot programming - Simple “Go” MSRDS First Beginner Course – STEP4 Young Joon Kim http://www.helloapps.com

Topics Preparing basic environment Simple “Go” drive “Go Forwards” drive “Go Backwards” drive Stopping a robot Going around Turning round

“Go” Drive Commands

“Go” Drive Commands Go Usages Range of motor power values Drive a robot with motor power Motor power is set with given value and keeps its value Usages robotname.Go() //default power is 0.2 robotname.Go(power) robotname.Go(left_power, right_power) Range of motor power values -1.0 (Max backwards) ~ 1.0 (Max forwards) 0: Stop the motor

“Go” Drive Commands Go forwards Go backwards Use the value above 0 Ex) robotname.Go() robotname.Go(0.3) robotname.Go(0.2, 0.2) Go backwards Use the negative value robotname.Go(-0.3) robotname.Go(-0.2, -0.2)

“Go” Drive Commands Stopping a robot Use the value 0 Ex) robotname.Go(0) robotname.Go(0, 0) robotname.Stop()

Preparing basic environment

Preparing basic environment Launch SPL and add “StartSimulationEngine” command 1 2 Double click

Preparing basic environment Expand “/FileName:” option Click + Expanded

Preparing basic environment Double click “SimState/basicsim.xml” Double click

Preparing basic environment Add “AddDifferentialDriveEntity” command on the “Entities” tab 1 Double click 2

Preparing basic environment Add “FlushScript” command on the Actions tab 1 2 Double click

Preparing basic environment Save as “script/SimpleGo.txt”

Preparing basic environment Run SPL by pressing “F5” key or clicking “Run (F5)” icon

Preparing basic environment Execution result

Simple “Go” drive

Simple “Go” drive Check available method for DriveEntity under the Actions tab

Simple “Go” drive base1.Go() How to use drive methods “robot_name” + “.” + method Ex) Robot name: “base1” Method: “.Go()” base1.Go()

Simple “Go” drive Add “base1.Go()” command as follows

Simple “Go” drive Run SPL by pressing “F5” key or clicking “Run” icon

“Go Forwards” drive

“Go Forwards” drive Change drive command as follows base1.Go() -> base1.Go(0.5) Left and right power will be set with 0.5

“Go Forwards” drive Change command as follows

“Go Forwards” drive Run SPL by pressing “F5” key or clicking “Run” icon

“Go Backwards” drive

“Go Backwards” drive Change drive command as follows base1.Go(0.5) -> base1.Go(-0.3) Left and right power will be set with -0.3

“Go Backwards” drive Change command as follows

“Go Backwards” drive Execution result

Stopping a robot

Stopping a robot Add time delay command Wait milliseconds Ex) wait 5 seconds Wait 5000

Stopping a robot Add “wait 5000” command as follows

Stopping a robot Add new drive command as follows base1.Go(0.0) Left and right power will be set with 0.0

Stopping a robot Add “base1.Go(0.0)” as follows

Stopping a robot Execution result Go backwards 1 Stop 2

Going around

Going around Change drive command as follows base1.Go(-0.3) -> base1.Go(0.2, 0.4) Left power will be set with 0.2 Right power will be set with 0.4

Going around Change command as follows

Going around Execution result

Turning round

Going around Change drive command as follows base1.Go(0.2, 0.4) -> base1.Go(-0.2, 0.2) Left power will be set with -0.2 Right power will be set with 0.2

Going around Change command as follows

Turning round Execution result