Skip to content

Commit

Permalink
Merge branch 'gz-gui8' into mjcarroll/use_fq_msg_name
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcarroll authored Sep 21, 2023
2 parents ec706d2 + 63ed9ea commit dfe684f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugins/topic_viewer/TopicViewer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,11 @@ void TopicViewerPrivate::CreateModel()
std::vector<transport::MessagePublisher> publishers;
std::vector<transport::MessagePublisher> subscribers;
this->node.TopicInfo(topics[i], publishers, subscribers);
std::string msgType = publishers[0].MsgTypeName();
this->AddTopic(topics[i], msgType);
if (!publishers.empty())
{
std::string msgType = publishers[0].MsgTypeName();
this->AddTopic(topics[i], msgType);
}
}
}

Expand Down

0 comments on commit dfe684f

Please sign in to comment.