SlideShare uma empresa Scribd logo
1 de 40
Ben Gardiner, Travis Cooper,  Matthew Haveard, Waseem Ahmad Snakes and Turtles  ROS, Python, and MILP
Outline ,[object Object]
Snakes: Python's Usefulness
Turtles: Adventures in ROS
MILP: The Algorithm that ties it together
Results
Conclusion
Python Intro ,[object Object]
Readability
Function and variable use
List Comprehension
English – Do ya speak it? ,[object Object]
print (x*y) is snakes!snakes!snakes! ,[object Object],[object Object]
nested block two end ,[object Object],[object Object]
Top 3 reasons to love Python's lists ,[object Object],[object Object]
Lists are mutable
Lists can contain other lists
[object Object],[object Object],...  [1, 2, 3],  ...  [4, 5, 6],  ...  [7, 8, 9],  ...    ]  print([[row[i] for row in mat] for i in [0, 1, 2]]) [[1, 4, 7], [2, 5, 8], [3, 6, 9]] Top 3 reasons to love Python's lists
[object Object],>>> words = 'The quick brown fox jumps over the lazy dog'.split() >>> print words ['The', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog'] >>>  >>> stuff = [[w.upper(), w.lower(), len(w)] for w in words] >>> for i in stuff: ...  print i ...  ['THE', 'the', 3] ['QUICK', 'quick', 5] ['BROWN', 'brown', 5] ['FOX', 'fox', 3] ['JUMPS', 'jumps', 5] ['OVER', 'over', 4] ['THE', 'the', 3] ['LAZY', 'lazy', 4] ['DOG', 'dog', 3] Top 3 reasons to love Python's lists
Functions and Variables  ,[object Object]
Assign a function to a variable
Ability to pass functions as arguments
Turtles, the ROS framework ,[object Object]
Coordinator
Control Menu
Collision Avoidance ,[object Object]
Command Updates Services
Plane Creation
Load Waypoints
Collision Avoidance
Collision Avoidance Node ,[object Object]
The Main Event Mixed Integer Linear Programming
The Elusive A and B
What A and B do UAV State  Vector Force  Vector
How A Works Position and Velocity
How B Works Acceleration and Time
Minimum Speed
Time Trajectory
Time Minimize
Time Minimize

Mais conteúdo relacionado

Mais procurados

Mais procurados (10)

RuleML2015: Binary Frontier-guarded ASP with Function Symbols
RuleML2015: Binary Frontier-guarded ASP with Function SymbolsRuleML2015: Binary Frontier-guarded ASP with Function Symbols
RuleML2015: Binary Frontier-guarded ASP with Function Symbols
 
Materi 4 Regular Expression
Materi 4   Regular ExpressionMateri 4   Regular Expression
Materi 4 Regular Expression
 
Pattern Matching Part Two: k-mismatches
Pattern Matching Part Two: k-mismatchesPattern Matching Part Two: k-mismatches
Pattern Matching Part Two: k-mismatches
 
Boyer more algorithm
Boyer more algorithmBoyer more algorithm
Boyer more algorithm
 
Logs
LogsLogs
Logs
 
Pattern Matching Part Three: Hamming Distance
Pattern Matching Part Three: Hamming DistancePattern Matching Part Three: Hamming Distance
Pattern Matching Part Three: Hamming Distance
 
Cs6660 compiler design november december 2016 Answer key
Cs6660 compiler design november december 2016 Answer keyCs6660 compiler design november december 2016 Answer key
Cs6660 compiler design november december 2016 Answer key
 
defense
defensedefense
defense
 
Theory of computation Lec2
Theory of computation Lec2Theory of computation Lec2
Theory of computation Lec2
 
Business Process Model Abstraction Based On Behavioral Profiles
Business Process Model Abstraction Based On Behavioral ProfilesBusiness Process Model Abstraction Based On Behavioral Profiles
Business Process Model Abstraction Based On Behavioral Profiles
 

Destaque (7)

The Cell
The CellThe Cell
The Cell
 
Using Social Networks For Job Search
Using Social Networks For Job SearchUsing Social Networks For Job Search
Using Social Networks For Job Search
 
Social media for educators
Social media for educatorsSocial media for educators
Social media for educators
 
Biological Organization
Biological OrganizationBiological Organization
Biological Organization
 
Social structures and their impact
Social structures and their impactSocial structures and their impact
Social structures and their impact
 
Global Travel Scholarship Information Session 2011
Global Travel Scholarship Information Session 2011Global Travel Scholarship Information Session 2011
Global Travel Scholarship Information Session 2011
 
71 Elmrill Road
71 Elmrill Road71 Elmrill Road
71 Elmrill Road
 

Semelhante a Presentation 2

Intro python
Intro pythonIntro python
Intro python
kamzilla
 
Pattern matching
Pattern matchingPattern matching
Pattern matching
shravs_188
 
An Annotation Framework for Statically-Typed Syntax Trees
An Annotation Framework for Statically-Typed Syntax TreesAn Annotation Framework for Statically-Typed Syntax Trees
An Annotation Framework for Statically-Typed Syntax Trees
Ray Toal
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
Rajib Layek
 

Semelhante a Presentation 2 (20)

Python quickstart for programmers: Python Kung Fu
Python quickstart for programmers: Python Kung FuPython quickstart for programmers: Python Kung Fu
Python quickstart for programmers: Python Kung Fu
 
Intro python
Intro pythonIntro python
Intro python
 
Python scripting kick off
Python scripting kick offPython scripting kick off
Python scripting kick off
 
Introduction to Algorithms
Introduction to AlgorithmsIntroduction to Algorithms
Introduction to Algorithms
 
Perl Presentation
Perl PresentationPerl Presentation
Perl Presentation
 
Pattern matching
Pattern matchingPattern matching
Pattern matching
 
Pythonic Math
Pythonic MathPythonic Math
Pythonic Math
 
Data type2 c
Data type2 cData type2 c
Data type2 c
 
Python Presentation
Python PresentationPython Presentation
Python Presentation
 
Introduction to Erlang
Introduction to ErlangIntroduction to Erlang
Introduction to Erlang
 
Measuring algorithm performance
Measuring algorithm performanceMeasuring algorithm performance
Measuring algorithm performance
 
algo1-aa-gist_typed.pdf
algo1-aa-gist_typed.pdfalgo1-aa-gist_typed.pdf
algo1-aa-gist_typed.pdf
 
Arrays in C language
Arrays in C languageArrays in C language
Arrays in C language
 
Array
ArrayArray
Array
 
An Annotation Framework for Statically-Typed Syntax Trees
An Annotation Framework for Statically-Typed Syntax TreesAn Annotation Framework for Statically-Typed Syntax Trees
An Annotation Framework for Statically-Typed Syntax Trees
 
Python for R developers and data scientists
Python for R developers and data scientistsPython for R developers and data scientists
Python for R developers and data scientists
 
My First Rails Plugin - Usertext
My First Rails Plugin - UsertextMy First Rails Plugin - Usertext
My First Rails Plugin - Usertext
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
Scientific Computing with Python Webinar --- May 22, 2009
Scientific Computing with Python Webinar --- May 22, 2009Scientific Computing with Python Webinar --- May 22, 2009
Scientific Computing with Python Webinar --- May 22, 2009
 
Why Python by Marilyn Davis, Marakana
Why Python by Marilyn Davis, MarakanaWhy Python by Marilyn Davis, Marakana
Why Python by Marilyn Davis, Marakana
 

Presentation 2