robotics system toolbox - mathworks · –design and test robotics algorithms on a robot simulator...

20
1 © 2015 The MathWorks, Inc. 使用机器人系统工具箱开发智能算法 张延亮 (Ph.D.) 机器人产品和行业经理 [email protected]

Upload: others

Post on 04-Mar-2020

15 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

1© 2015 The MathWorks, Inc.

使用机器人系统工具箱开发智能算法

张延亮 (Ph.D.)

机器人产品和行业经理

[email protected]

Page 2: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

2

日程

使用MATLAB 和 Simulink 在机器人领域– 开发机器人硬件系统

– 开发机器人应用

– 机器人教学

Robotics System Toolbox 简介 (R2015a, March 2015)

– 路径规划算法(Path Planning)

– 障碍物防撞算法(Collision Avoidance)

– MATLAB/Simulink与ROS接口

Page 3: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

3

你在机器人领域做什么?

Build

Robots

1Develop Robotics Applications

Using Existing Robots

2Teach/Learn

Robotics

3

My Focus Today

Page 4: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

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: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

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: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

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

Robot for

Delivery

My Robot

Page 7: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

7

Key Features of Robotics System Toolbox (v1.0)

• MATLAB-ROS Interface

• Simulink-ROS Interface

• Robotics Algorithms

• Comprehensive Demos

Page 8: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

8

Demos…

1. Design and Test Robotics Algorithms with ROS-

enabled Robots or Simulators (such as Gazebo)

2. Generate ROS nodes from Simulink Models

Page 9: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

9

Demo 1 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: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

10

Demo 1: Design and Test Robotics Algorithms

• Prototype a path-planning algorithm in MATLAB

Page 11: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

11

Demo 1: Design and Test Robotics Algorithms

• Test it with Gazebo through MATLAB-ROS Interface

Page 12: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

12

Demo 1: Design and Test Robotics Algorithms

• Test it with a physical robot running ROS

Page 13: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

13

Demo 1: Design and Test Robotics Algorithms

• Analyze the performance by reading rosbag files

Switch to Demo

Page 14: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

14

Demo 2 Overview: Generate a ROS Node from

a Simulink Model

Prototype

algorithms

(e.g., Collision

Avoidance)

in Simulink

Test algorithms

with a ROS-

enabled Simulator

or Robot

Generate a

standalone ROS

node from the

Simulink Model

Page 15: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

15

Demo 2: Generate a ROS Node from a

Simulink Model

• Connect Simulink Model to a ROS network to simulate a Collision

Avoidance algorithm

Page 16: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

16

Demo 2: Generate a ROS Node from a

Simulink Models

• Convert Simulink model to C++ code for a standalone ROS node

Page 17: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

17

Demo 2: Generate a ROS Node from a

Simulink Model

• Verify the generated ROS node

Switch to Demo

Page 18: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

18

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

– Simulink I/O with ROS networks

– ROS node generation from Simulink models

Algorithms in Robotics System Toolbox

Page 19: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

19

Robotics Algorithms with Other MathWorks

Products

Computer Vision System Toolbox Phased Array System Toolbox

Page 20: Robotics System Toolbox - MathWorks · –Design and test robotics algorithms on a robot simulator such as Gazebo –Test robotics algorithms on a physical robot –Import rosbag

20

Thank You…

Yanliang Zhang (Ph.D.)

Robotics Product and Industry Manager

[email protected]