Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Course2026
← Lectures: Embedded Linux CourseModule 14

Embedded Linux Lecture 8, Part 2: ROS 2 Robot Integration and Deployment

InstructorDr. Redmond R. Shamshiri
AffiliationAssistant Professor of Robotics · University of Southern Denmark (SDU)
Study time35 minutes
Watch & study

Lecture video

Open on YouTube ↗

Video unavailable here? Watch on YouTube. Captions and playback speed are available in the player.

Study companion. These editable notes, worked examples and exercises supplement the source material. They are not a verbatim video transcript or a reproduction of the book.

Study Embedded Linux Lecture 8, Part 2: ROS 2 Robot Integration and Deployment. Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.

Learning Objectives

  • Explain the role of ros 2 data flow and interfaces in the engineering system.
  • Calculate the worked quantity with consistent units.
  • Design a measurement that can reveal an implementation failure.

Study guide

Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.

Lesson focus: Embedded Linux Lecture 8, Part 2: ROS 2 Robot Integration and Deployment

Repeat the test after reboot and under the expected communication, environmental and load conditions.

ROS 2 data flow and interfaces

A ROS 2 graph connects nodes through typed interfaces. Topics suit continuous streams, services suit bounded request/reply operations, and actions suit long-running goals with feedback and cancellation. Define units and frames with the message contract.

Model, units and assumptions

\[\Delta t=\frac1{f},\qquad d_{age}\approx v\,t_{age}\]

f is publication frequency and Δt is nominal period. The second expression estimates distance moved while a measurement ages for near-constant speed; it is a diagnostic, not a localization correction.

Worked engineering example

A robot moving at 0.5 m/s travels 0.10 m while a sensor sample ages by 200 ms. A 20 Hz publisher has a nominal 50 ms period; missing four updates can therefore matter to nearby-obstacle behavior.

Practical task and evidence

Apply the following procedure to the topic of this lesson: Embedded Linux Lecture 8, Part 2: ROS 2 Robot Integration and Deployment.

  • List publisher, subscriber, message type, units, frame and expected frequency for each topic.
  • Inspect actual frequency and timestamps while starting and stopping individual nodes.
  • Test the intended QoS compatibility and behavior when a publisher disappears.

Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.

Check your understanding

Question. A robot travels at 0.8 m/s. How far does it move during 150 ms of data age?

Show worked answer

0.12 m under the constant-speed approximation.

Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.

Summary

ROS 2 data flow and interfaces: keep units, assumptions and timing explicit. Check the numerical model against an independent observation before using it in a larger system.

Suggested Reading & Resources

  • Reading
    ROS 2 concepts and tutorials

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗