Skip to content

Commit

Permalink
Add a comment describing durability.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <clalancette@osrfoundation.org>
  • Loading branch information
clalancette committed Jan 11, 2017
1 parent df7827e commit fedd9d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions image_tools_py/src/image_qos_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def create_qos_profile(depth, reliability_policy, keep):
else:
raise ValueError("Invalid keep policy (must be 0 for keep last or 1 for keep all")

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

return qos_profile

0 comments on commit fedd9d9

Please sign in to comment.