cloudy with a chance of simulation - roscon 2017 · pdf filecloudy with a chance of simulation...

14
Cloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF

Upload: vuonglien

Post on 28-Mar-2018

230 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Cloudy with a chance of SimulationROSCon 2016

October 2016Ian Chen, OSRF

Page 2: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Simulation on the Cloud

DARPA Virtual Robotics Challenge● Birth of CloudSim

Rich Hardware / Software Resources available

Page 3: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Upcoming Projects

Space Robotics Challenge (SRC) NASA

Agile Robotics for Industrial Automation Competition (ARIAC) NIST

Upcoming Swarm Competition TBA

Page 4: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Cloudsim.io

Page 5: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Cloudsim.io - What’s New?

Architectural Design● Frontend: Web components● Backend: Servers as micro-services

Flexible configuration of machine instances

Permissions / Resource Sharing

User software setup

Page 6: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Frontend: Cloudsim-Widgets

Web-app pieced together by web components

Page 7: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Cloudsim-WidgetsA

UTH

POR

TAL

Web components talks directly to back-end

SIM

Page 8: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Authentication

AU

TH

POR

TAL

SIM

Authentication Server● Log in/out● token

AWS Portal● Launch/Kill

instances● Permissions

(instances)

Log in (REST)

token

Simulation Server● Create/Remove

simulation tasks● Start/Stop/Play/Pause ● Permissions

(simulations)

Page 9: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Back-end Servers

AU

TH

POR

TAL

SIM

Authentication Server● Log in/out● token

AWS Portal● Launch/Kill

instances● Permissions

(instances)

Launch instance(REST)

success, instance id, IP, etc

launch instance(AWS )

Simulation Server● Create/Remove

simulation tasks● Start/Stop/Play/Pause ● Permissions

(simulations)

Page 10: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Back-end Servers

AU

TH

POR

TAL

SIM

Authentication Server● Log in/out● token

AWS Portal● Launch/Kill

instances● Permissions

(instances)

Simulation Server● Create/Remove

simulation tasks● Start/Stop/Play/Pause ● Permissions

(simulations)

Create task(REST)

success, task id

Page 11: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Back-end Servers

AU

TH

POR

TAL

SIM

Authentication Server● Log in/out● token

AWS Portal● Launch/Kill

instances● Permissions

(instances)

statusio.connect(websocket)

io.connect(websocket)

status

Simulation Server● Create/Remove

simulation tasks● Start/Stop/Play/Pause ● Permissions

(simulations)

Page 12: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Security Groups: Swarm CompetitionCase Study

XSGroupBlue SGroupGold

SGroupSim

● Traffic Control managed by Portal

POR

TAL

1. Create sgroup name: SGroupGold rules: type: inbound src: sgroupsim

2. Launch instance sgroup: SGroupGold

Page 14: Cloudy with a chance of Simulation - ROSCon 2017 · PDF fileCloudy with a chance of Simulation ROSCon 2016 October 2016 Ian Chen, OSRF. Simulation on the Cloud ... Cloudsim developers:

Thank you - Questions?

Cloudsim developers:Ian Chen, Louise Poubel, Hugo Boyer

Contributions:Gazebo/ROS team @ OSRFMohamd Ayman (GSOC student for gazebojs / gzweb)

CloudSim Repo:https://bitbucket.org/osrf/cloudsim