From 8f2809df6457e36249b8d0ee1ab97c79fc939133 Mon Sep 17 00:00:00 2001 From: Jacob Perron Date: Wed, 24 Feb 2021 14:15:51 -0800 Subject: [PATCH] Fix documented example in create_publisher (#1558) (#1559) Signed-off-by: Jacob Perron --- rclcpp/include/rclcpp/node.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/include/rclcpp/node.hpp b/rclcpp/include/rclcpp/node.hpp index b0e3528..4a047b8 100644 --- a/rclcpp/include/rclcpp/node.hpp +++ b/rclcpp/include/rclcpp/node.hpp @@ -161,7 +161,7 @@ public: * pub = node->create_publisher("chatter", QoS(10)); // implicitly KeepLast * pub = node->create_publisher("chatter", QoS(KeepLast(10))); * pub = node->create_publisher("chatter", QoS(KeepAll())); - * pub = node->create_publisher("chatter", QoS(1).best_effort().volatile()); + * pub = node->create_publisher("chatter", QoS(1).best_effort().durability_volatile()); * { * rclcpp::QoS custom_qos(KeepLast(10), rmw_qos_profile_sensor_data); * pub = node->create_publisher("chatter", custom_qos);