19
1 BEST National Conference BEST National Conference 2011 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Embed Size (px)

Citation preview

Page 1: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

1

BEST National Conference 2011BEST National Conference 2011

Making the Most ofBEST Robotics Library for Simulink

Greg Young

Auburn UniversityThursday Jul 21, 2011

Page 2: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Why MathWorks?Why MathWorks?

BEST National Corporate Partner 2011

STEMEducation

Inspire students to pursue STEM careers.Give students access to industry standard tools.Provide simple, yet powerful programming tools.Introduce students to state-of-the-art design methods.

Jul 21, 2011 Copyright © 2011 BEST Robotics, Inc. All rights reserved.

Page 3: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

What They DoWhat They Do

Technical Computing- Data Acquisition- Data Analysis- Mathematical Modeling- Algorithm Development- Parallel Computing- Desktop & Web Deployment

Simulation and Model-Based Design- System Design and Simulation- Physical Modeling- Discrete-Event Simulation- Embedded Code Generation- Rapid Prototyping- HDL Code Generation and Verification- Verification, Validation and Test

Technology

Science

Engineering

Mathematics

Simulink

Page 4: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Simulink BenefitsSimulink Benefits

• Simple Programming Interface- graphical drag and drop

• More Efficient Design Flow- Parallel development- No waiting for robot be be built

• Simulation and Debug- Test your program without hardware- What-if scenarios are easy

• Advanced Control with StateFlow

Page 5: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Simulink BenefitsSimulink Benefits

• Simple Programming Interface- graphical drag and drop

• More Efficient Design Flow- Parallel development- No waiting for robot be be built

• Simulation and Debug- Test your program without hardware- What-if scenarios are easy

• Advanced Control with StateFlow

Page 6: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

ProgrammingProgramming

Your RobotJoystick Control

2 Stick (Tank Style) control of wheels.1 Button Gripper using servos.

Robot Program / Behavior

Page 7: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

TerminologyTerminology

• Blocks – a pre-defined command or function

• Library – a group of blocks from which to choose

• Simulink Model – the robot program

• Simulate/Run – test the program’s behavior on the computer

• Generate Code – auto generation of C code from the Simulink model

• Compile & Download – put the program on the robot

Page 8: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Creating a Robot ProgramCreating a Robot Program

Compile/Download

Page 9: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

DemonstrateDemonstrate

[Demonstration]• show how quickly this behavior can be modeled.• only a few clicks

Page 10: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Simulink BenefitsSimulink Benefits

• Simple Programming Interface- graphical drag and drop

• More Efficient Design Flow- Parallel development- No waiting for robot be be built

• Simulation and Debug- Test your program without hardware- What-if scenarios are easy

• Advanced Control with StateFlow

Page 11: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Efficient Design FlowEfficient Design Flowte

st &

iter

ate

Old workflow New workflow

Robot

RobotTeam

test

& it

erat

e Robot Robot

Team

Locomotion Arm/Gripper Sensors

robot sharing

program program

Page 12: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Simulink BenefitsSimulink Benefits

• Simple Programming Interface- graphical drag and drop

• More Efficient Design Flow- Parallel development- No waiting for robot be be built

• Simulation and Debug- Test your program without hardware- What-if scenarios are easy

• Advanced Control with StateFlow

Page 13: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

What is Simulation?What is Simulation?

Model ofBehavior

Simulation is the imitation of some real thing, state of affairs, or process.

The act of simulating something generally entails representing certain key characteristics or behaviours of a selected physical or abstract system.

What if we do this? Imitate the robot behavior What will the robot do?

Stimulus Response

Page 14: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

DemonstrateDemonstrate

[Demonstration]• show simulation blocks (stimulus/response)

- sliders- gamepad block- toggle block- display- scope- field simulator- stateflow highlighting (later)

•What-if scenarios (e.g., wheel size)• Subsystems (grouping blocks)

Page 15: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Simulink BenefitsSimulink Benefits

• Simple Programming Interface- graphical drag and drop

• More Efficient Design Flow- Parallel development- No waiting for robot be be built

• Simulation and Debug- Test your program without hardware- What-if scenarios are easy

• Advanced Control with StateFlow

Page 16: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

DemonstrateDemonstrate

[Demonstration]• show 2010 example

- reading the 2010 Field Data port- semi-autonomous operations

Page 17: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Additional ResourcesAdditional Resources Weekly training webinars

See http://www.bestinc.org Announcements

BEST Robotics website http://www.bestinc.org Menu: Participants -> Resources

Within Simulink – BEST UI Direct Mathworks technical support button

Mathworks Representatives Sandeep Hiremath, [email protected] Todd Atkins, [email protected]

Page 18: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Making the Most ofMaking the Most ofMathWorks SimulinkMathWorks Simulink

Thank You For Attending

Questions?

Don’t forget to fill out your session survey

Page 19: 1 BEST National Conference 2011 Making the Most of BEST Robotics Library for Simulink Greg Young Auburn University Thursday Jul 21, 2011

Creating a Robot ProgramCreating a Robot Program

LibraryModel

Behavior SimulationDesign BlocksStimulus (Source) BlocksResponse (Sink) Blocks

Simulink Model Testing without hardware

iteration

Generate CodeCompile/Download

**workflow slide****belong here??****use Sandeep’s slide?**