0% found this document useful (0 votes)
33 views6 pages

ROS 2 Architecture and Communication Overview

ROS 2 is a significant upgrade to the Robot Operating System, addressing the limitations of ROS 1 with a decentralized architecture, improved scalability, and enhanced security through DDS-Security and SROS 2. It introduces better node management for greater efficiency and reliability, making it essential for future-proofing robotics projects as ROS 1 approaches its end of life in 2025. Ongoing development efforts within the ROS community are expected to resolve any remaining maturity issues, solidifying ROS 2 as a robust platform for industrial and commercial use.

Uploaded by

dieram564
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views6 pages

ROS 2 Architecture and Communication Overview

ROS 2 is a significant upgrade to the Robot Operating System, addressing the limitations of ROS 1 with a decentralized architecture, improved scalability, and enhanced security through DDS-Security and SROS 2. It introduces better node management for greater efficiency and reliability, making it essential for future-proofing robotics projects as ROS 1 approaches its end of life in 2025. Ongoing development efforts within the ROS community are expected to resolve any remaining maturity issues, solidifying ROS 2 as a robust platform for industrial and commercial use.

Uploaded by

dieram564
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ROS 2:

Architecture and
Communication Paper

Author: Kemal Bektaş


ROS 2
Architecture and Communication Paper
ROS, short for Robot Operating System, is an open-source framework initially developed as a
research environment for the Willow Garage PR2 robot. Originally designed to meet the specific
needs of academic research, ROS quickly gained popularity due to its flexibility and extensive set
of tools for robotics development. However, despite its widespread use, there has been criticism
regarding ROS's lack of industry-proven reliability, leading to concerns about its suitability for
commercial applications and security.

In response to these challenges, the development of ROS 2 was initiated, marking a significant
evolution in the ROS ecosystem. Built from the ground up to address limitations present in ROS
1, ROS 2 introduces a redesigned architecture to enhance reliability, security, and scalability.
Leveraging the Data Distribution Service (DDS) standard for communication, ROS 2 offers
improved support for real-time and embedded systems, making strides towards fulfilling the
demands of industrial and commercial applications.

So how does ROS 2 differ from its predecessor, ROS 1?

Architecture
ROS 1's architecture relies heavily on the ROS
Master, a centralized node responsible for
facilitating communication between other
nodes in the network. While this approach
is effective in many cases, it introduces
potential single points of failure and scalability
limitations, particularly as the network size
grows. Additionally, ROS 1 primarily uses
TCPROS (a TCP/IP-based protocol) for
communication, which may not be optimal for
all scenarios, especially those requiring real-
time performance or large-scale deployments.

In contrast, ROS 2's architecture is designed to


address some ofthese limitations by introducing
a more decentralized communication model.
With the ROS Middleware Interface (RMW),
ROS 2 can support various communication
middleware options, offering flexibility and

2
scalability. By default, ROS 2 uses DDS (Data Although ROS 2's architecture is a big step up
Distribution Service), which provides a fully from ROS 1 regarding flexibility and scalability,
decentralized communication graph and there are still challenges. Issues such as
support for real-time performance. This configuring DDS, ensuring its compatibility
architecture not only enables ROS 2 to better with various networks, and optimizing
adapt to diverse deployment environments data transfer efficiency require careful
but also addresses the challenges faced by consideration. However, the ROS community is
ROS 1, such as scalability issues and reliance working on it, so these challenges are expected
on a centralized master. Moreover, ROS 2’s to be addressed over time. As improvements
design is optimized for distributed system are made and solutions are implemented,
architectures, allowing for seamless robot- ROS 2 will continue to evolve, becoming even
to-robot communication and coordination in more reliable and user-friendly for robotics
complex, multi-robot scenarios. applications.

Security
Security in robotic systems is essential due to Distribution Service (DDS) protocol, ROS 2 in-
the nature of communication between nodes tegrates DDS-Security specifications, which
often occurring over networks, making them define plugins like Authentication, Access con-
vulnerable to unauthorized access and ma- trol, and Cryptography. These plugins ensure
licious attacks. However, ROS 1 wasn't initial- the authentication of participants, enforce ac-
ly designed with security in mind, prioritizing cess restrictions, and handle encryption and
easy information exchange over secure com- decryption operations, respectively. Addition-
munication. Recognizing this gap, efforts were ally, SROS 2 (Secure ROS 2) provides utilities
made later to enhance security through proj- to facilitate the setup of security measures,
ects like SROS (Secure Robot Operating Sys- including creating certificates, managing per-
tem) aimed at fortifying ROS 1's security fea- missions, and ensuring encrypted communi-
tures. cation, thereby offering a more robust security
In contrast, ROS 2 places a stronger emphasis framework compared to ROS 1.
on security from the start. Leveraging the Data

3
Enhanced Node Control
In ROS 1, developers had limited control over node management, allowing developers to
node execution. However, ROS 2 introduces handle errors, configure resources, and control
significant enhancements in this regard node behavior with ease. By providing clear
through two key features: lifecycle nodes and guidelines for node lifecycle management,
node composition. Lifecycle nodes in ROS 2 ROS 2 enhances system robustness and
simplify node management by providing clear stability, critical for real-world applications.
guidelines for state transitions, simplifying
configuration and error handling. This ensures On the other hand, node composition in ROS
reliable and predictable node operation, crucial 2 revolutionizes how nodes are organized and
for industrial environments. Additionally, executed within a system. By consolidating
node composition optimizes resource multiple nodes into single processes, node
utilization and improves system performance composition reduces communication
by consolidating multiple nodes into single overhead and optimizes resource utilization.
processes, enhancing scalability and efficiency This approach improves system performance
in distributed robotic systems. and efficiency, especially in distributed
robotic systems where minimizing latency
Lifecycle nodes in ROS 2 follow a well-defined is crucial. Unlike ROS 1's nodelets, which had
state machine, transitioning through primary limited adoption, ROS 2's node composition
states such as unconfigured, inactive, active, is more flexible and straightforward, enabling
and finalized, as well as intermediate transition developers to seamlessly group nodes for
states. This structured approach simplifies enhanced system scalability and performance.

4
Conclusion
In conclusion, ROS 2 represents a significant advancement over ROS 1, addressing key limitations
while introducing new features and improvements. ROS 2 offers a decentralized architecture,
enhanced security measures, and better node control, making it a compelling choice for robotics
development.
The question of whether to switch to ROS 2 is not a matter of if, but when. With its nicer features
and ROS 1's impending end of life (EOL) in 2025, transitioning to ROS 2 is essential for future-
proofing robotics projects. While ROS 2 may still face some maturity issues, ongoing development
efforts within the ROS community ensure that these challenges will be resolved, making ROS 2 a
reliable and future-ready platform for robotics applications.

TL;DR
ROS 2 is a major upgrade to the Robot Operating System, addressing the limitations
of ROS 1 with a decentralized architecture, improved scalability, and enhanced se-
curity through DDS-Security and SROS 2. It introduces better node management
for greater efficiency and reliability. With ROS 1 ending in 2025, switching to ROS 2
is crucial for future-proof robotics projects, as it continues to evolve into a robust
platform for industrial and commercial use.

5
About us
At NODE Robotics, we have made it our mission to overcome the limitations of current solutions
for mobile robotics. Our focus is on providing highly reliable, flexible and user-friendly software
solutions that unlock the true potential of mobile robots, no matter if it is an AGV or AMR.

We understand that deploying and working with collaborative mobile robots should be effortless,
which is why we prioritize intuitive and easy-to-implement tools. By emphasizing flexibility,
usability, and interoperability, we aim to make mobile robotics technology accessible and practical
for a wide range of industries and applications.

Whether it's automating tasks in manufacturing or optimizing logistics operations, our solutions
empower businesses to leverage the full potential of mobile robots.

Contact
Postal Address: Get in Touch
Schwabstraße 30
70597 Stuttgart

Kemal Bektaş Newsletter


Test Area:
ARENA2036
Pfaffenwaldring 19 [Link]
70569 Stuttgart sales@[Link]

We make mobile robots easy to use.


6

Common questions

Powered by AI

Node composition in ROS 2 enhances system performance by consolidating multiple nodes into single processes, thus reducing communication overhead and optimizing resource utilization. This approach improves efficiency and scalability, particularly in distributed robotic systems where minimizing latency is crucial. It allows seamless grouping of nodes, thus improving system scalability and reliability compared to ROS 1's nodelets, which were less flexible and had limited adoption .

Anticipated future developments for ROS 2 include ongoing optimization of DDS configurations, network compatibility, and data transfer efficiencies. These enhancements are expected to improve ROS 2's reliability, user-friendliness, and performance, positioning it as a robust platform for future industrial and commercial robotics applications. As these developments unfold, ROS 2 will likely see broader adoption and integration across a wide range of robotic systems .

Architectural changes in ROS 2 address the limitations of centralized communication models in ROS 1 by adopting a decentralized model using the Data Distribution Service (DDS) standard. This allows for a fully decentralized communication graph, eliminating reliance on a centralized ROS Master, thus removing single points of failure and enhancing system scalability and flexibility across various deployment environments .

The ROS Middleware Interface (RMW) contributes to the flexibility of communication in ROS 2 by supporting various communication middleware options. This design choice allows customizable middleware solutions, enabling ROS 2 to seamlessly fit into diverse deployment environments, thus enhancing its adaptability across different use cases and system requirements .

Lifecycle nodes in ROS 2 introduce structured guidelines for state transitions, enhancing node management by simplifying configuration and error handling processes. This structure contributes to reliable and predictable node operation, which is essential in industrial environments. The lifecycle management allows developers to easily handle errors, configure resources, and control node behavior, leading to increased system robustness and stability .

The development of ROS 2 was motivated by the need to address significant challenges in ROS 1, including its centralized architecture, limited scalability, and insufficient security. ROS 2 represents an evolution by introducing a decentralized architecture, enhanced security measures via DDS-Security, and better node management, making it more aligned with industrial and commercial application requirements .

ROS 2 enhances security by integrating DDS-Security specifications that include Authentication, Access control, and Cryptography plugins. These functionalities ensure participant authentication, enforce access restrictions, and handle encryption and decryption operations. Additionally, SROS 2 facilitates the setup of security measures like certificate creation and encrypted communication, providing a more robust security framework than ROS 1, which wasn't initially designed with security in mind .

ROS 2 addresses the scalability and reliability limitations of ROS 1 by adopting a decentralized architecture using the Data Distribution Service (DDS) standard, which eliminates the dependency on a centralized ROS Master. This approach reduces single points of failure and enhances real-time performance, making ROS 2 more suitable for complex systems and large-scale deployments .

The transition from ROS 1 to ROS 2 involves challenges such as maturity issues and the need to adapt existing projects to the new architectural paradigms. However, this transition is necessary due to ROS 1's impending end of life in 2025. As ROS 2 evolves, ongoing development efforts are expected to resolve current challenges, making it a reliable and future-proof platform for industrial and commercial robotics applications .

DDS plays a critical role in ROS 2's suitability for industrial and commercial applications by providing decentralized communication capabilities that support real-time performance and scalability. Its fully decentralized communication graph allows ROS 2 to operate efficiently in real-time and embedded systems, which is crucial for meeting the demands of complex and large-scale industry-relevant deployments .

You might also like