@@ -4275,18 +4275,18 @@ void dds_qos_examples()
42754275 // DDS_CHANGE_RTPS_RELIABLE_WRITER_QOS
42764276 // This example only applies to DataWriter entities
42774277 DataWriterQos writer_qos;
4278- // The RTPSReliableWriterQos is constructed with initialHeartbeatDelay = 12 ms by default
4279- // Change the initialHeartbeatDelay to 20 nanoseconds
4280- writer_qos.reliable_writer_qos ().times .initialHeartbeatDelay = {0 , 20 };
4281- // The RTPSReliableWriterQos is constructed with heartbeatPeriod = 3 s by default
4282- // Change the heartbeatPeriod to 5 seconds
4283- writer_qos.reliable_writer_qos ().times .heartbeatPeriod = {5 , 0 };
4284- // The RTPSReliableWriterQos is constructed with nackResponseDelay = 5 ms by default
4285- // Change the nackResponseDelay to 10 nanoseconds
4286- writer_qos.reliable_writer_qos ().times .nackResponseDelay = {0 , 10 };
4287- // The RTPSReliableWriterQos is constructed with nackSupressionDuration = 0 s by default
4288- // Change the nackSupressionDuration to 20 nanoseconds
4289- writer_qos.reliable_writer_qos ().times .nackSupressionDuration = {0 , 20 };
4278+ // The RTPSReliableWriterQos is constructed with initial_heartbeat_delay = 12 ms by default
4279+ // Change the initial_heartbeat_delay to 20 nanoseconds
4280+ writer_qos.reliable_writer_qos ().times .initial_heartbeat_delay = {0 , 20 };
4281+ // The RTPSReliableWriterQos is constructed with heartbeat_period = 3 s by default
4282+ // Change the heartbeat_period to 5 seconds
4283+ writer_qos.reliable_writer_qos ().times .heartbeat_period = {5 , 0 };
4284+ // The RTPSReliableWriterQos is constructed with nack_response_delay = 5 ms by default
4285+ // Change the nack_response_delay to 10 nanoseconds
4286+ writer_qos.reliable_writer_qos ().times .nack_response_delay = {0 , 10 };
4287+ // The RTPSReliableWriterQos is constructed with nack_supression_duration = 0 s by default
4288+ // Change the nack_supression_duration to 20 nanoseconds
4289+ writer_qos.reliable_writer_qos ().times .nack_supression_duration = {0 , 20 };
42904290 // You can also change the DisablePositiveACKsQosPolicy. For further details see DisablePositiveACKsQosPolicy section.
42914291 writer_qos.reliable_writer_qos ().disable_positive_acks .enabled = true ;
42924292 // The RTPSReliableWriterQos is constructed with disable_heartbeat_piggyback = false by default
@@ -6530,8 +6530,8 @@ void dds_usecase_examples()
65306530 {
65316531 // CONF_QOS_TUNING_RELIABLE_WRITER
65326532 DataWriterQos qos;
6533- qos.reliable_writer_qos ().times .heartbeatPeriod .seconds = 0 ;
6534- qos.reliable_writer_qos ().times .heartbeatPeriod .nanosec = 500000000 ; // 500 ms
6533+ qos.reliable_writer_qos ().times .heartbeat_period .seconds = 0 ;
6534+ qos.reliable_writer_qos ().times .heartbeat_period .nanosec = 500000000 ; // 500 ms
65356535 // !--
65366536 }
65376537
0 commit comments