cobots using MATLAB-Presentation
cobots using MATLAB-Presentation
2
3
1st Webinar: Design and Deploy 2nd Webinar: Design Industrial 3rd Webinar: Applying AI to
Collaborative Robot (Cobot) Robot Applications from Enable Autonomy in Robotics Using
Applications Using MATLAB Perception to Motion MATLAB
4
Polling
5
Agenda
Introduction
– Cobots
– How to program Cobots?
Summary
6
Agenda
Introduction
– Cobots
– How to program Cobots?
Summary
7
Evolution of ADAS and Autonomous Driving Car Technologies
AEB-VRU(Cyclist)
J3016 8
Evolution of Industrial Robotics Technologies
9
Cobots are a key trend in factory automation
AI AI-powered
AI will allow the realization of a lot more
Robots
advanced applications with cobots.*
Traditional Industrial
Robots The arrival of cobots has broken down traditional
barriers to adoption and inspired thousands of SMEs
to deploy automation for the first time.*
Joe Campbell (Universal Robots)
1961 2008 2020+/-
PICK AND
PLACE
Question?
• Do you teach a robot with the
manufacturer’s teach
pendant? ASSEMBLY
Done by
• Do you teach with offline off-line
programming? programming
MACHINE
TENDING
PACKAGING &
PALLETIZING
*: source from Universal Robots
11
Top 5 Industrial Applications of Cobots
ASSEMBLY
MACHINE
TENDING
12
Offline Programming Technical Algorithms and Simulation
Photorealistic simulation
Collision / Force Simulation
: AI solutions
13
Offline Programming Technical Programming and Simulation
Photorealistic simulation
Collision / Force Simulation
: AI solutions
14
LINK
15
Agenda
Introduction
– Cobots
– How to program Cobots?
Summary
16
Cobot for part sorting
Detector
17
System Level Simulation and Testing
Platform
Robot Model
AI model
18
Autonomous system design
workflow
Autonomous algorithms
AI
Perceive Plan Control
Autonomous system design
workflow
System
Modeling
Autonomous algorithms
Deploy
Platform
Deep Learning with MATLAB
Perceive
21
Complete perception pipeline with domain specific functions
Pre-processing Post-processing
AI Model
Object
Point Cloud Matching with 6 DoF Object
RGB-D Image Detection with
Reconstruction CAD models Pose
YOLOv3
24
Pose estimator – Primary Component Analysis (PCA)
Post-processing
AI Model
Object
Matching with 6 DoF Object
Detection with
CAD models Pose
YOLOv3
25
MathWorks offers many perception tools with cobot applications
System
Modeling
Planning
Deploy
Platform
Plan Motion Planning
1 2 3
Sense Identify Parts Execute a Pick-and-Place Task
Pick up the
Scan Detect Parts Estimate Pose Select a part Place the part
part
28
Performant Robotics Algorithms
Path Planner
- ex: Optimization-based motion planner
camera
manipulatorRRT
manipulatorCHOMP
Plan
Doc Page
Navigation Toolbox
plannerBiRRT
Control plannerRRT
plannerRRTStar
plannerHybridAStar
plannerAStarGrid
PlannerPRM
…
Ebook 29
AI model for motion planning?
AI
Path Length
without DL: 1.8 m
Path Length
with DL: 0.8 m
System
Modeling
Control
Deploy
Platform
Advanced Control Designs for Optimal System Behavior
Multi-agent control to
Control • Assign and coordinate actions
AI in Controls
34
Control
Design control logic for robots
Perceive
Plan
Control
Stateflow
35
Reinforcement Learning Toolbox
Case study: picking with reinforcement learning Deep Learning Toolbox
Simscape Multibody
Contact
Robot Define RL
forces Training Validation
modeling agent
modeling
36
Autonomous system design
workflow
System
Modeling
Deploy
Platform
MATLAB and Simulink Code Generation
Code
Generation
38
Deploy to target with zero coding errors
CPU
Any CPU oneDNN ARM Compute
No Library needed Library Library
GPU
Code
Generation
µC
FPGA
39
MATLAB and Simulink Code Generation
• Compile (Catkin /
Colcon)
41
Deploy to Jetson device as CUDA ROS node
Other ROS
nodes
Generation
NVIDIA® Jetson™
42
Agenda
Introduction
– Cobots
– How to program Cobots?
AI in Robotics
– Why Use AI for Robotics (Cobots)?
– AI-driven robotics system design workflow
Summary
43
User Case – Intelligent Bin Picking
45
Intelligent bin picking setup
Depth Camera
UR5e Cobot
Bin
Cobot stand
46
What do we need to solve for Intelligent bin picking
Connectivity
Perception Planning/Control
Deployment
DL-Based Object Detection Hardware connection established
manipulatorRRT computes
trained on real images for flat, with UR support package
collision-free paths online
spaced objects
contopptraj optimizes trajectory Camera feedback and EE control
given kino-dynamic constraints integrated using ROS
PCA for Pose estimation using
YOLO results Trajectories deployed to robot as
Results previewed with they are provided by the planner
rigidbodytree.show()
MATLAB with
ROS Universal_Robots_
Robotics System Toolbox and
Controller ROS_Driver
ROS Toolbox
48
Role of ROS middleware: From Camera to Cobot
ROS
Subscribe Publish
Raw image Trajectory
Publish
Subscribe
Pose
Pose
Pose Motion
Estimation Planning
49
Perception: Use Deep Learning to train the YOLO network
Start
RGB image as
Subscribe to RGB Camera images over seen by Camera
ROS
NO
Learning andYESloss
rate satisfactory? Object
identification by
YES YOLO after
training
Use training network to identify object
Training complete 50
Perception: Pose estimation using Point cloud
Start
Pose estimation
complete
51
Perception: Estimated pose of objects
52
Motion Planning and trajectory generation
manipulatorRRT
53
Connectivity with UR Cobot from MATLAB
The Robotics System Toolbox Support Package for Universal Robots UR Series Manipulators
allows user to connect to and control Universal Robots Cobots over ROS.
54
Set UR Robot with MathWorks URCap
56
Getting started with communication and control of UR5e cobot
57
Intelligent bin picking Examples in the support package
58
Intelligent bin picking with Simulink
LINK Intelligent Bin Picking in Universal Robot and Gazebo from Simulink
59
Intelligent bin picking with Industrial Parts
60
Intelligent bin picking – future enhancements to watch out for
61
Agenda
Introduction
– Cobots
– How to program Cobots?
AI in Robotics
– Why Use AI for Robotics (Cobots)?
– AI-driven robotics system design workflow
Summary
62
Musashi Seimitsu Industry Co.,Ltd.
Detect Abnormalities in Automotive Parts
“ Using camera connection, preprocessing, and various pretrained models in MATLAB enabled
us to work on the entire workflow. Through discussions with consultants, our team gained
many tips for solving problems, growing the skills of our engineers.
“
63
Core of robotics and autonomous systems design +
AI
Computer vision /
Mission planning Motion control
Image processing
64
MATLAB and Simulink as an integrated development environment from
perception to motion
System
Engineering • Support a full suite of
curated algorithms for
Autonomy Algorithms
robotics
Perceive Plan Control
• Design and evaluate AI
applications
Connect &
Deploy
• Simulate and test Cobot
behaviors within an
Platform integrated development
environment
66
Learn More – Cobots / Manipulators Robotics Examples
Examples
67
Learn More – Cobots / Manipulators Robotics Hardware Support
UR Support Package►
Learn More►
69
YJ Lim, Ph.D. Ankur Bose
Principal Technical Robotics Product Robotics Hardware Support Dev
Lead Lead
[email protected] [email protected]
© 2023 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The
MathWorks, Inc. See www.mathworks.com/trademarks for a list of additional trademarks.
Other product or brand names may be trademarks or registered trademarks of their
respective holders.
70
71