16
1 © 2015 The MathWorks, Inc. Using MATLAB and Simulink in Robotics Yanliang Zhang (Ph.D.) Robotics Product and Industry Manager [email protected]

Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

  • Upload
    others

  • View
    17

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

1© 2015 The MathWorks, Inc.

Using MATLAB and Simulink in

Robotics

Yanliang Zhang (Ph.D.)

Robotics Product and Industry Manager

[email protected]

Page 2: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

2

Agenda

Using MATLAB and Simulink for

– Building Robots

– Developing Robotics Applications using Existing Robots

– Teaching/Learning Robotics

Demonstrating Robotics System Toolbox

(R2015a, March 2015)

– Robotics Algorithms

– MATLAB-ROS Interface

– Simulink-ROS Interface

Page 3: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

3

What Are You Doing with Robotics?

Build

Robots

1Develop Robotics Applications

Using Existing Robots

2Teach/Learn

Robotics

3

My Focus Today

Page 4: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

4

Using MATLAB and Simulink for

“Building Robots”

Plant

Recorded Webinar: How a Differential Equation Becomes a Robot

Controller+

-

Input Output

Festo Bionic Arm DLR Humanoid Robot YZU Robot Hand

Page 5: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

5

Using MATLAB and Simulink for

“Teaching/Learning Robots”

Hardware Support Package

• No need C/C++/Python

• Drivers Provided

• Comprehensive Algorithms

Build Robots with Low-Cost Hardware?

Robotics System Toolbox

• ROS/Gazebo Interface

• ROS Node Generation

• Comprehensive Algorithms

Use Powerful Robots Running ROS?

Visit:

www.mathworks.com/hardware

Visit:

www.mathworks.com/products/robotics

Page 6: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

6

Using MATLAB and Simulink for

“Developing Robotics Applications”

Developing Robotics

Applications using

Existing Robots

2

What you have and need?

My computer

+ My MATLAB

1: Interface

2: Algorithms

Example:

Develop a

Human

Robot

Interaction

Application

My Robot

Page 7: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

7

Key Features of Robotics System Toolbox (v1.0)

• MATLAB-ROS Interface

• Simulink-ROS Interface

• Robotics Algorithms

• Comprehensive Demos

Page 8: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

8

Demo…

Design and Test Robotics Algorithms with ROS-enabled

Robots or Simulators (such as Gazebo)

Page 9: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

9

Demo Overview: Design and Test Robotics

Algorithms

Prototype

algorithms

(e.g., Path Planning)

in MATLAB

Test algorithms

with ROS-enabled

Simulators such

as Gazebo

Test algorithms on

a Robot

and

analyze the

performance with

rosbag

Page 10: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

10

Demo: Design and Test Robotics Algorithms

• Prototype a path-planning algorithm in MATLAB

Page 11: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

11

Demo: Design and Test Robotics Algorithms

• Test it with Gazebo through MATLAB-ROS Interface

Page 12: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

12

Demo: Design and Test Robotics Algorithms

• Test it with a physical robot running ROS

Page 13: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

13

Demo: Design and Test Robotics Algorithms

• Analyze the performance by reading rosbag files

Switch to Demo

Page 14: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

14

Key Capabilities Demonstrated

MATLAB-ROS Interface

– Create a ROS node inside MATLAB

– Design and test robotics algorithms on a robot simulator

such as Gazebo

– Test robotics algorithms on a physical robot

– Import rosbag log files into MATLAB

Simulink-ROS Interface (Refer to Doc

Examples)

– Simulink I/O with ROS networks

– ROS node generation from Simulink models

Algorithms in Robotics System Toolbox

Page 15: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

15

Robotics Algorithms with Other MathWorks

Products

Computer Vision System Toolbox Phased Array System Toolbox

Page 16: Using MATLAB and Simulink in Robotics...2 Agenda Using MATLAB and Simulink for –Building Robots –Developing Robotics Applications using Existing Robots –Teaching/Learning Robotics

16

Thank You…

Yanliang Zhang (Ph.D.)

Robotics Product and Industry Manager

[email protected]