diff --git a/vortex_utils_ros/vortex_utils_ros/qos_profiles.py b/vortex_utils_ros/vortex_utils_ros/qos_profiles.py index f3c4f8c..24d38a8 100644 --- a/vortex_utils_ros/vortex_utils_ros/qos_profiles.py +++ b/vortex_utils_ros/vortex_utils_ros/qos_profiles.py @@ -15,3 +15,12 @@ def reliable_profile(depth: int = 10) -> qos.QoSProfile: depth=depth, reliability=qos.ReliabilityPolicy.RELIABLE, ) + + +def reliable_transient_local_profile(depth: int = 1) -> qos.QoSProfile: + return qos.QoSProfile( + history=qos.HistoryPolicy.KEEP_LAST, + depth=depth, + reliability=qos.ReliabilityPolicy.RELIABLE, + durability=qos.DurabilityPolicy.TRANSIENT_LOCAL, + )