diff --git a/behaviortree_ros2/include/behaviortree_ros2/bt_topic_pub_node.hpp b/behaviortree_ros2/include/behaviortree_ros2/bt_topic_pub_node.hpp index 0dcf265..0a51a71 100644 --- a/behaviortree_ros2/include/behaviortree_ros2/bt_topic_pub_node.hpp +++ b/behaviortree_ros2/include/behaviortree_ros2/bt_topic_pub_node.hpp @@ -176,7 +176,7 @@ inline NodeStatus RosTopicPubNode::tick() getInput("topic_name", topic_name); if(prev_topic_name_ != topic_name) { - createPublisher(topic_name, qos_); + createPublisher(topic_name); } }