Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Book2026
← ROS 2 for Agricultural RoboticsChapter 10

Launch two named greenhouse sensor stations

InstructorDr. Redmond R. Shamshiri
AffiliationAssistant Professor of Robotics · University of Southern Denmark (SDU)
Study time35 minutes
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 Launch two named greenhouse sensor stations. 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: Launch two named greenhouse sensor stations

Draw the node/interface graph and confirm topic units, frames, QoS and timing.

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: Launch two named greenhouse sensor stations.

  • 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
    Book source: ROS 2 for Agricultural Robotics

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

    Open ↗
  • Reading
    ROS 2 concepts and tutorials

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

    Open ↗