SlideShare a Scribd company logo
1 of 22
Download to read offline
Introduction to ROS
Miriam Hani
Eng. Miriam Hani
ROS is an open-source robot operating system
A set of software libraries and tools that help you build robot applications that
work across a wide variety of robotic platforms
Originally developed in 2007 at the Stanford Artificial Intelligence Laboratory
and development continued at Willow Garage
Since 2013 managed by OSRF (Open Source Robotics Foundation)
Eng. Miriam Hani
Eng. Miriam Hani
Eng. Miriam Hani
ROS creates a network where all the processes are connected. Any node in the
system can access this network, interact with other nodes, see the information
that they are sending, and transmit data to the network.
Eng. Miriam Hani
A node refers to the smallest unit of processor running
in ROS. Think of it as one executable program. For
example, in case of mobile robots, the program to
operate the robot is broken down into specialized
functions. Specialized node is used for each function
such as path planning , filtering and map building
Nodelets are special nodes designed to run multiple
nodes in a single process, with each nodelet being a
thread
A node must have a unique name in the system. This
name is used to permit the node to communicate with
another node using its name without ambiguity. A node
can be written using different libraries, such as roscpp
and rospy
Eng. Miriam Hani
The ROS master provides naming and registration services to the rest of the
nodes in the ROS system.
It tracks publishers and subscribers to topics as well as services.
The role of the master is to enable individual ROS nodes to locate one another.
Once these nodes have located each other; they communicate with each other in a
peer-to-peer fashion.
Eng. Miriam Hani
Eng. Miriam Hani
The parameter server is basically a dictionary containing global variables which
are accessible from anywhere in the current ROS environment.
At any time, a node can read a parameter, modify a parameter, and can create
new ones.
A ROS parameter is basically just one of the shared variable stored in the parameter
server.
Eng. Miriam Hani
Communication
using ROS
Topics:
Eng. Miriam Hani
Eng. Miriam Hani
Eng. Miriam Hani
Topics are buses used by nodes to transmit data.
A topic can have various subscribers and can also have various publishers
Topics can be transmitted without a direct connection between nodes.
Each topic is strongly typed by the ROS message type used to publish it, and.
A node can subscribe to a topic only if it has the same message type.
Eng. Miriam Hani
Communication
using ROS Services:
Eng. Miriam Hani
Eng. Miriam Hani
Communication
using ROS
Actions:
Eng. Miriam Hani
Eng. Miriam Hani
When you send a mail, the transport company will transport your letter. The content
of this letter is the analogy of a ROS message.
Eng. Miriam Hani
When you send a letter and you wait for a response, then the first letter contains a
Request message, and the letter that you receive back contains a Response message.
The combination of the two message definitions is the service definition.
Eng. Miriam Hani
ROS MESSAGE COMMUNICATION
There are three different methods of exchanging messages: a topic
which provides a unidirectional message transmission/ reception, a
service which provides a bidirectional message request/response and
an action which provides a bidirectional message
goal/result/feedback.
Eng. Miriam Hani
msg files are simple text files that describe the fields of a ROS message. They are
used to generate source code for messages in different languages. msgs are just
simple text files with a field type and field name per line.
Types:
int8, int16, int32, int64 (plus uint*)
float32, float64
String
time, duration
variable-length array and fixed-length array
Message file
Eng. Miriam Hani
HOW TO BUILD A CUSTOM MESSAGE?!
Eng. Miriam Hani

More Related Content

Similar to Introduction to ROS.pdf

Cvpr2010 open source vision software, intro and training part vi robot operat...
Cvpr2010 open source vision software, intro and training part vi robot operat...Cvpr2010 open source vision software, intro and training part vi robot operat...
Cvpr2010 open source vision software, intro and training part vi robot operat...
zukun
 
Omt Personal Statement Examples
Omt Personal Statement ExamplesOmt Personal Statement Examples
Omt Personal Statement Examples
Tammy Lacy
 
application-layer.ppt
application-layer.pptapplication-layer.ppt
application-layer.ppt
aozcan1
 

Similar to Introduction to ROS.pdf (20)

Cvpr2010 open source vision software, intro and training part vi robot operat...
Cvpr2010 open source vision software, intro and training part vi robot operat...Cvpr2010 open source vision software, intro and training part vi robot operat...
Cvpr2010 open source vision software, intro and training part vi robot operat...
 
Oss
OssOss
Oss
 
Webservices intro
Webservices introWebservices intro
Webservices intro
 
Omt Personal Statement Examples
Omt Personal Statement ExamplesOmt Personal Statement Examples
Omt Personal Statement Examples
 
Open source operating systems
Open source operating systemsOpen source operating systems
Open source operating systems
 
Corrib.org - OpenSource and Research
Corrib.org - OpenSource and ResearchCorrib.org - OpenSource and Research
Corrib.org - OpenSource and Research
 
Core idea driving and defining OO: using dynamic polymorphism to invert key a...
Core idea driving and defining OO: using dynamic polymorphism to invert key a...Core idea driving and defining OO: using dynamic polymorphism to invert key a...
Core idea driving and defining OO: using dynamic polymorphism to invert key a...
 
ROS (Robot Operating System) Comparison
ROS (Robot Operating System) ComparisonROS (Robot Operating System) Comparison
ROS (Robot Operating System) Comparison
 
Robotic operating system
Robotic operating systemRobotic operating system
Robotic operating system
 
Ruby on Rails Introduction M&P - IT Skill Development Program 07
Ruby on Rails Introduction M&P - IT Skill Development Program 07Ruby on Rails Introduction M&P - IT Skill Development Program 07
Ruby on Rails Introduction M&P - IT Skill Development Program 07
 
Open Source Software (OSS) applications in libraries: Special Reference to Se...
Open Source Software (OSS) applications in libraries: Special Reference to Se...Open Source Software (OSS) applications in libraries: Special Reference to Se...
Open Source Software (OSS) applications in libraries: Special Reference to Se...
 
Investigating Soap and Xml Technologies in Web Service
Investigating Soap and Xml Technologies in Web Service  Investigating Soap and Xml Technologies in Web Service
Investigating Soap and Xml Technologies in Web Service
 
INVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICE
INVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICEINVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICE
INVESTIGATING SOAP AND XML TECHNOLOGIES IN WEB SERVICE
 
Html Tutor
Html TutorHtml Tutor
Html Tutor
 
RIA Data and Security, 2007
RIA Data and Security, 2007RIA Data and Security, 2007
RIA Data and Security, 2007
 
application-layer.ppt
application-layer.pptapplication-layer.ppt
application-layer.ppt
 
WIT UNIT-5.pdf
WIT UNIT-5.pdfWIT UNIT-5.pdf
WIT UNIT-5.pdf
 
SNSW CO3.pptx
SNSW CO3.pptxSNSW CO3.pptx
SNSW CO3.pptx
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
 
Osi model
Osi modelOsi model
Osi model
 

Recently uploaded

GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
Lokesh Kothari
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Sérgio Sacani
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
Sérgio Sacani
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
RizalinePalanog2
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
RohitNehra6
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Sérgio Sacani
 

Recently uploaded (20)

Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
Creating and Analyzing Definitive Screening Designs
Creating and Analyzing Definitive Screening DesignsCreating and Analyzing Definitive Screening Designs
Creating and Analyzing Definitive Screening Designs
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 

Introduction to ROS.pdf

  • 3. ROS is an open-source robot operating system A set of software libraries and tools that help you build robot applications that work across a wide variety of robotic platforms Originally developed in 2007 at the Stanford Artificial Intelligence Laboratory and development continued at Willow Garage Since 2013 managed by OSRF (Open Source Robotics Foundation) Eng. Miriam Hani
  • 6. ROS creates a network where all the processes are connected. Any node in the system can access this network, interact with other nodes, see the information that they are sending, and transmit data to the network. Eng. Miriam Hani
  • 7. A node refers to the smallest unit of processor running in ROS. Think of it as one executable program. For example, in case of mobile robots, the program to operate the robot is broken down into specialized functions. Specialized node is used for each function such as path planning , filtering and map building Nodelets are special nodes designed to run multiple nodes in a single process, with each nodelet being a thread A node must have a unique name in the system. This name is used to permit the node to communicate with another node using its name without ambiguity. A node can be written using different libraries, such as roscpp and rospy Eng. Miriam Hani
  • 8. The ROS master provides naming and registration services to the rest of the nodes in the ROS system. It tracks publishers and subscribers to topics as well as services. The role of the master is to enable individual ROS nodes to locate one another. Once these nodes have located each other; they communicate with each other in a peer-to-peer fashion. Eng. Miriam Hani
  • 10. The parameter server is basically a dictionary containing global variables which are accessible from anywhere in the current ROS environment. At any time, a node can read a parameter, modify a parameter, and can create new ones. A ROS parameter is basically just one of the shared variable stored in the parameter server. Eng. Miriam Hani
  • 12. Eng. Miriam Hani Eng. Miriam Hani
  • 13. Topics are buses used by nodes to transmit data. A topic can have various subscribers and can also have various publishers Topics can be transmitted without a direct connection between nodes. Each topic is strongly typed by the ROS message type used to publish it, and. A node can subscribe to a topic only if it has the same message type. Eng. Miriam Hani
  • 18. When you send a mail, the transport company will transport your letter. The content of this letter is the analogy of a ROS message. Eng. Miriam Hani
  • 19. When you send a letter and you wait for a response, then the first letter contains a Request message, and the letter that you receive back contains a Response message. The combination of the two message definitions is the service definition. Eng. Miriam Hani
  • 20. ROS MESSAGE COMMUNICATION There are three different methods of exchanging messages: a topic which provides a unidirectional message transmission/ reception, a service which provides a bidirectional message request/response and an action which provides a bidirectional message goal/result/feedback. Eng. Miriam Hani
  • 21. msg files are simple text files that describe the fields of a ROS message. They are used to generate source code for messages in different languages. msgs are just simple text files with a field type and field name per line. Types: int8, int16, int32, int64 (plus uint*) float32, float64 String time, duration variable-length array and fixed-length array Message file Eng. Miriam Hani
  • 22. HOW TO BUILD A CUSTOM MESSAGE?! Eng. Miriam Hani