diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorldExample.py b/fastdds_python_examples/HelloWorldExample/HelloWorldExample.py index bb332161..ac862cb8 100644 --- a/fastdds_python_examples/HelloWorldExample/HelloWorldExample.py +++ b/fastdds_python_examples/HelloWorldExample/HelloWorldExample.py @@ -70,13 +70,13 @@ def __init__(self, domain): self.participant = factory.create_participant(domain, self.participant_qos) self.topic_data_type = HelloWorld.HelloWorldPubSubType() - self.topic_data_type.setName("HelloWorldDataType") + self.topic_data_type.set_name("HelloWorldDataType") self.type_support = fastdds.TypeSupport(self.topic_data_type) self.participant.register_type(self.type_support) self.topic_qos = fastdds.TopicQos() self.participant.get_default_topic_qos(self.topic_qos) - self.topic = self.participant.create_topic("myTopic", self.topic_data_type.getName(), self.topic_qos) + self.topic = self.participant.create_topic("myTopic", self.topic_data_type.get_name(), self.topic_qos) self.subscriber_qos = fastdds.SubscriberQos() self.participant.get_default_subscriber_qos(self.subscriber_qos) @@ -110,13 +110,13 @@ def __init__(self, domain, machine): self.participant = factory.create_participant(domain, self.participant_qos) self.topic_data_type = HelloWorld.HelloWorldPubSubType() - self.topic_data_type.setName("HelloWorldDataType") + self.topic_data_type.set_name("HelloWorldDataType") self.type_support = fastdds.TypeSupport(self.topic_data_type) self.participant.register_type(self.type_support) self.topic_qos = fastdds.TopicQos() self.participant.get_default_topic_qos(self.topic_qos) - self.topic = self.participant.create_topic("myTopic", self.topic_data_type.getName(), self.topic_qos) + self.topic = self.participant.create_topic("myTopic", self.topic_data_type.get_name(), self.topic_qos) self.publisher_qos = fastdds.PublisherQos() self.participant.get_default_publisher_qos(self.publisher_qos)