mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 02:23:34 +08:00
microRTPS: fix topic name when ROS2 is not being used
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user