Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix none exist topic #53

Merged
merged 2 commits into from
Jan 12, 2018
Merged

fix none exist topic #53

merged 2 commits into from
Jan 12, 2018

Conversation

randoms
Copy link
Contributor

@randoms randoms commented Jan 11, 2018

Fix issue #38
Check if topic has been published before subscribe to it.

@jihoonl jihoonl self-requested a review January 11, 2018 10:17
ros::master::V_TopicInfo master_topics;
ros::master::getTopics(master_topics);
inactive_ = true;
for (size_t it = 0; it<master_topics.size(); it++){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nits only.
master_topics -> available_topics
it < available_topics.size()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants