{"docs":[{"id":200,"title":"ROS 2 for Robotics Products: Architecture and Practical Use","heading":"ROS 2 for Robotics Products: Architecture and Practical Use","subheading":null,"category":"Robotics","body":{"root":{"type":"root","children":[{"type":"heading","tag":"h3","version":1,"children":[{"type":"text","text":"Topics, services and actions","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Topics carry continuous streams such as sensor data and commands, from any number of publishers to any number of subscribers. Services handle short request-and-response exchanges. Actions handle long-running goals with feedback and cancellation, and are built from topics and services.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"The middleware is pluggable through the ROS middleware interface, with several DDS implementations and, in recent distributions, Zenoh available. Behaviour and tuning differ between implementations, so choose one, test with it and keep it fixed for the product. Composing several nodes into one process can also cut copying and latency for high-rate data.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"tags":"Robotics, ROS 2, Software Architecture","cardCta":{"label":null,"link":null},"pageCta":{"label":"Talk to AAVICO engineering","link":"/contact"},"excerpt":"ROS 2 gives robots a common structure for drivers, planning and control. Using it in a product means understanding its communication patterns, middleware and quality of service.","featuredImage":null,"type":"Blog","readTime":"3 min read","publishedAt":"2026-11-15T13:47:00.000Z","heroImage":null,"introText":"ROS 2 is an open-source framework that structures robot software as many small programs, called nodes, that exchange data through a middleware layer. It provides drivers, navigation, manipulation and tooling that would take years to build alone. Moving from a research prototype to a product, though, needs attention to architecture, communication settings and security. This article explains the core concepts and the practical points that matter for shipping systems.","metrics":[{"id":"ros-2-for-robotics-products-architecture-and-pra-metric-1","value":"Nodes","label":"Units of computation that each do one job, such as a driver, planner or controller.","icon":null},{"id":"ros-2-for-robotics-products-architecture-and-pra-metric-2","value":"DDS","label":"The publish-subscribe middleware standard ROS 2 uses for discovery and transport by default.","icon":null},{"id":"ros-2-for-robotics-products-architecture-and-pra-metric-3","value":"QoS","label":"Quality of service settings for reliability, durability and history depth.","icon":null},{"id":"ros-2-for-robotics-products-architecture-and-pra-metric-4","value":"Lifecycle","label":"Managed nodes with defined states for controlled start-up and shutdown.","icon":null}],"gallery":[],"challenge":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Prototype systems tend to grow into dozens of nodes started by sprawling launch files, with settings scattered across them. Start-up order becomes fragile and nobody is sure which configuration is running on a given robot.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Communication problems can be silent. A subscriber requesting reliable delivery will not connect to a best-effort publisher, and robots sharing a network discover each other unless their domains are separated.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"blockquote":{"quote":"Treat topics and their QoS settings as interfaces. Design them, document them and version them.","author":"","role":"AAVICO Engineering"},"supportImage1":null,"deliverables":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Map the system as nodes and interfaces, choosing topics, services or actions for each exchange and setting QoS deliberately.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Use lifecycle nodes and centralised parameter files so start-up, configuration and shutdown are predictable.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Pin a long-term support distribution and your dependencies, and enable security if the robot shares a network.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"results":[{"id":"ros-2-for-robotics-products-architecture-and-pra-result-1","title":"Clear Structure","description":"Each node has one job and documented interfaces."},{"id":"ros-2-for-robotics-products-architecture-and-pra-result-2","title":"Reliable Start-Up","description":"Managed lifecycles bring the system up in a known order."},{"id":"ros-2-for-robotics-products-architecture-and-pra-result-3","title":"Reuse","description":"Standard drivers and packages shorten development."},{"id":"ros-2-for-robotics-products-architecture-and-pra-result-4","title":"Maintainability","description":"Pinned versions keep every robot running known software."}],"lookingAhead":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Use ROS_DOMAIN_ID or network separation to keep robots and test benches from discovering each other unintentionally.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Keep hard real-time control in dedicated firmware or a real-time controller, with ROS 2 commanding it at a higher level. This keeps tight loops independent of the operating system scheduler and the network.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"supportImage2":null,"testimonial":{"quote":null,"author":null,"role":null,"photo":null},"challengesSolved":[{"id":"ros-2-for-robotics-products-architecture-and-pra-challenge-1","title":"Silent QoS mismatches between nodes","description":null,"icon":null},{"id":"ros-2-for-robotics-products-architecture-and-pra-challenge-2","title":"Robots discovering each other on a shared network","description":null,"icon":null},{"id":"ros-2-for-robotics-products-architecture-and-pra-challenge-3","title":"Unpinned dependencies changing between builds","description":null,"icon":null},{"id":"ros-2-for-robotics-products-architecture-and-pra-challenge-4","title":"Security left disabled in the field","description":null,"icon":null}],"relatedPosts":[],"contactUs":{"show":true},"updatedAt":"2026-11-15T17:32:32.682Z","createdAt":"2026-11-15T17:32:32.682Z"}],"hasNextPage":false,"hasPrevPage":false,"limit":10,"nextPage":null,"page":1,"pagingCounter":1,"prevPage":null,"totalDocs":1,"totalPages":1}