Skip to content

Commit 96521d5

Browse files
authored
Feat mode types (#39)
* Added mode conversion and types * Removed .vscode and changed .gitignore * Added transient local profile to qos_profiles.py
1 parent 73447b0 commit 96521d5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

vortex_utils_ros/vortex_utils_ros/qos_profiles.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@ def reliable_profile(depth: int = 10) -> qos.QoSProfile:
1515
depth=depth,
1616
reliability=qos.ReliabilityPolicy.RELIABLE,
1717
)
18+
19+
20+
def reliable_transient_local_profile(depth: int = 1) -> qos.QoSProfile:
21+
return qos.QoSProfile(
22+
history=qos.HistoryPolicy.KEEP_LAST,
23+
depth=depth,
24+
reliability=qos.ReliabilityPolicy.RELIABLE,
25+
durability=qos.DurabilityPolicy.TRANSIENT_LOCAL,
26+
)

0 commit comments

Comments
 (0)