Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
Signed-off-by: elianalf <[email protected]>
  • Loading branch information
elianalf committed Jul 22, 2024
1 parent e884747 commit 088e254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/HelloWorldExampleDS/HelloWorldPublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ bool HelloWorldPublisher::init(
PublisherQos publisher_qos = PUBLISHER_QOS_DEFAULT;
DataWriterQos datawriter_qos = DATAWRITER_QOS_DEFAULT;

datawriter_qos.reliable_writer_qos().times.heartbeatPeriod.seconds = 2;
datawriter_qos.reliable_writer_qos().times.heartbeatPeriod.nanosec = 0;
datawriter_qos.reliable_writer_qos().times.heartbeat_period.seconds = 2;
datawriter_qos.reliable_writer_qos().times.heartbeat_period.nanosec = 0;
datawriter_qos.reliability().kind = eprosima::fastdds::dds::RELIABLE_RELIABILITY_QOS;

mp_publisher = mp_participant->create_publisher(publisher_qos);
Expand Down
2 changes: 1 addition & 1 deletion resources/xsd/discovery-server.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
<xs:complexType name="writerTimesType">
<xs:all minOccurs="0">
<xs:element name="initialHeartbeatDelay" type="durationType" minOccurs="0"/>
<xs:element name="heartbeatPeriod" type="durationType" minOccurs="0"/>
<xs:element name="heartbeat_period" type="durationType" minOccurs="0"/>
<xs:element name="nackResponseDelay" type="durationType" minOccurs="0"/>
<xs:element name="nackSupressionDuration" type="durationType" minOccurs="0"/>
</xs:all>
Expand Down

0 comments on commit 088e254

Please sign in to comment.