Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions vortex_utils_ros/include/vortex/utils/ros/qos_profiles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ inline rclcpp::QoS reliable_profile(const size_t depth = 10) {
return profile;
}

inline rclcpp::QoS reliable_transient_local_profile(const size_t depth = 1) {
auto profile{rclcpp::QoS(rclcpp::KeepLast(depth))};
profile.reliable();
profile.transient_local();
return profile;
}

} // namespace vortex::utils::qos_profiles

#endif // VORTEX_UTILS_QOS_PROFILES_HPP