microRTPS: fix topic name when ROS2 is not being used

This commit is contained in:
TSC21
2020-04-07 15:50:47 +01:00
committed by Nuno Marques
parent 4e0441ab0b
commit 4f718086ea
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ bool @(topic)_Publisher::init()
Wparam.topic.topicName = "rt/@(topic)_PubSubTopic";
@[ end if]@
@[else]@
Wparam.topic.topicName = "@(topic)_PubSubTopic";
Wparam.topic.topicName = "@(topic)PubSubTopic";
@[end if]@
mp_publisher = Domain::createPublisher(mp_participant, Wparam, static_cast<PublisherListener*>(&m_listener));
if(mp_publisher == nullptr)
+1 -1
View File
@@ -116,7 +116,7 @@ bool @(topic)_Subscriber::init(uint8_t topic_ID, std::condition_variable* t_send
Rparam.topic.topicName = "rt/@(topic)_PubSubTopic";
@[ end if]@
@[else]@
Rparam.topic.topicName = "@(topic)_PubSubTopic";
Rparam.topic.topicName = "@(topic)PubSubTopic";
@[end if]@
mp_subscriber = Domain::createSubscriber(mp_participant, Rparam, static_cast<SubscriberListener*>(&m_listener));
if(mp_subscriber == nullptr)