Skip to content

Commit fedd9d9

Browse files
committed
Add a comment describing durability.
Signed-off-by: Chris Lalancette <[email protected]>
1 parent df7827e commit fedd9d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

image_tools_py/src/image_qos_profile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def create_qos_profile(depth, reliability_policy, keep):
4646
else:
4747
raise ValueError("Invalid keep policy (must be 0 for keep last or 1 for keep all")
4848

49+
# The durability policy determines what happens to samples that were sent before
50+
# a subscribe joined the network.
51+
# VOLATILE - Past samples ignored
52+
# TRANSIENT_LOCAL - Past samples are sent to the subscriber
4953
qos_profile.durability = QoSDurabilityPolicy.RMW_QOS_POLICY_DURABILITY_VOLATILE
5054

5155
return qos_profile

0 commit comments

Comments
 (0)